diff options
author | Daniel Hahler <git@thequod.de> | 2019-11-29 18:51:25 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-11-29 09:51:25 -0800 |
commit | f33371c03f526ecbe2d6a1bec744fa37c1b2640c (patch) | |
tree | 3bbced520f8514a2b94f1bad22d0907713e65c86 /runtime/doc/cmdline.txt | |
parent | e138c4c87407d3f7848a8b978de29e7aad610bab (diff) | |
download | rneovim-f33371c03f526ecbe2d6a1bec744fa37c1b2640c.tar.gz rneovim-f33371c03f526ecbe2d6a1bec744fa37c1b2640c.tar.bz2 rneovim-f33371c03f526ecbe2d6a1bec744fa37c1b2640c.zip |
vim-patch:8.1.2017: cannot execute commands after closing cmdline window #11479
Problem: Cannot execute commands after closing the cmdline window.
Solution: Also trigger BufEnter and WinEnter. (closes vim/vim#4762)
https://github.com/vim/vim/commit/96e38a86a710fb6daec4550ac1667f019dc3a40e
Fixes https://github.com/neovim/neovim/issues/11279.
Diffstat (limited to 'runtime/doc/cmdline.txt')
-rw-r--r-- | runtime/doc/cmdline.txt | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/runtime/doc/cmdline.txt b/runtime/doc/cmdline.txt index ee1f76e4e4..b31177ce0e 100644 --- a/runtime/doc/cmdline.txt +++ b/runtime/doc/cmdline.txt @@ -1122,11 +1122,9 @@ edited as described in |cmdwin-char|. AUTOCOMMANDS -Two autocommand events are used: |CmdwinEnter| and |CmdwinLeave|. Since this -window is of a special type, the WinEnter, WinLeave, BufEnter and BufLeave -events are not triggered. You can use the Cmdwin events to do settings -specifically for the command-line window. Be careful not to cause side -effects! +Two autocommand events are used: |CmdwinEnter| and |CmdwinLeave|. You can use +the Cmdwin events to do settings specifically for the command-line window. +Be careful not to cause side effects! Example: > :au CmdwinEnter : let b:cpt_save = &cpt | set cpt=. :au CmdwinLeave : let &cpt = b:cpt_save |