diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-06-26 07:14:43 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-06-26 07:19:36 +0800 |
commit | dc3ee122dc132b5baf11ea0083604927eb6c7443 (patch) | |
tree | 3d9ef689cac7197f5d60823dab12afea7c29a801 /test | |
parent | 7966020f70255e04bc7a8015a170307c4d5341a8 (diff) | |
download | rneovim-dc3ee122dc132b5baf11ea0083604927eb6c7443.tar.gz rneovim-dc3ee122dc132b5baf11ea0083604927eb6c7443.tar.bz2 rneovim-dc3ee122dc132b5baf11ea0083604927eb6c7443.zip |
vim-patch:9.0.1665: empty CmdlineEnter autocommand causes errors in Ex mode
Problem: Empty CmdlineEnter autocommand causes errors in Ex mode.
Solution: Save and restore ex_pressedreturn. (Christian Brabandt,
closes # 12581, closes vim/vim#12578)
https://github.com/vim/vim/commit/590aae35575cbd74d80c41d87fc647f2812aad70
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_ex_mode.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/old/testdir/test_ex_mode.vim b/test/old/testdir/test_ex_mode.vim index 3332bc6ab9..42f08868a0 100644 --- a/test/old/testdir/test_ex_mode.vim +++ b/test/old/testdir/test_ex_mode.vim @@ -244,6 +244,12 @@ func Test_ex_mode_errors() au! CmdLineEnter delfunc ExEnterFunc + + au CmdlineEnter * : + call feedkeys("gQecho 1\r", 'xt') + + au! CmdlineEnter + quit endfunc |