diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-09 18:35:33 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-09 18:35:33 +0200 |
commit | 96e38a86a710fb6daec4550ac1667f019dc3a40e (patch) | |
tree | c49b193fdb61c2643ffade36920b9308093be1cc /runtime/doc/cmdline.txt | |
parent | adbde3fbedd4a5379ddf0cfc9a6854b52955fd4a (diff) |
patch 8.1.2017: cannot execute commands after closing the cmdline windowv8.1.2017
Problem: Cannot execute commands after closing the cmdline window.
Solution: Also trigger BufEnter and WinEnter. (closes #4762)
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 22b4e6fdf3..a3aeb18865 100644 --- a/runtime/doc/cmdline.txt +++ b/runtime/doc/cmdline.txt @@ -1171,11 +1171,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 |