mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
vim-patch:9.0.0083: ModeChanged event not triggered when leaving cmdline window
Problem: ModeChanged event not triggered when leaving the cmdline window.
Solution: Call may_trigger_modechanged(). (closes vim/vim#10791)
c9e8fd6fc7
Code is already present in Nvim. Add some other related missing changes.
This commit is contained in:
@@ -6805,9 +6805,13 @@ static int open_cmdwin(void)
|
||||
|
||||
// Avoid command-line window first character being concealed.
|
||||
curwin->w_p_cole = 0;
|
||||
// First go back to the original window.
|
||||
wp = curwin;
|
||||
set_bufref(&bufref, curbuf);
|
||||
win_goto(old_curwin);
|
||||
|
||||
// win_goto() may trigger an autocommand that already closes the
|
||||
// cmdline window.
|
||||
if (win_valid(wp) && wp != curwin) {
|
||||
win_close(wp, true, false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user