comparison src/window.c @ 32216:6651b86aed3b v9.0.1439

patch 9.0.1439: start Insert mode when accessing a hidden prompt buffer Commit: https://github.com/vim/vim/commit/cde8de034524d00aba4ff4142e658baff511e12d Author: orbital <orbital@holgerines.de> Date: Sun Apr 2 22:05:13 2023 +0100 patch 9.0.1439: start Insert mode when accessing a hidden prompt buffer Problem: Start Insert mode when accessing a hidden prompt buffer. Solution: Call leaving_window() in aucmd_restbuf(). (Thorben Tr?bst, closes #12148, closes #12147)
author Bram Moolenaar <Bram@vim.org>
date Sun, 02 Apr 2023 23:15:03 +0200
parents 04d9dff67d99
children bea4ebf594c6
comparison
equal deleted inserted replaced
32215:4b6c544c41f6 32216:6651b86aed3b
2290 } 2290 }
2291 } 2291 }
2292 } 2292 }
2293 2293
2294 #ifdef FEAT_JOB_CHANNEL 2294 #ifdef FEAT_JOB_CHANNEL
2295 static void 2295 void
2296 leaving_window(win_T *win) 2296 leaving_window(win_T *win)
2297 { 2297 {
2298 // Only matters for a prompt window. 2298 // Only matters for a prompt window.
2299 if (!bt_prompt(win->w_buffer)) 2299 if (!bt_prompt(win->w_buffer))
2300 return; 2300 return;