summaryrefslogtreecommitdiff
path: root/src/testdir/test_ex_mode.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-18 17:28:39 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-18 17:28:39 +0200
commit158ea175a99fc23eae1b0a5ee9a81cdd973854a6 (patch)
tree85750aa423cd26647ae403bbf540b9ae7a74067a /src/testdir/test_ex_mode.vim
parent2f03e5a0a9cfaabb01c57dd3348a05e86c26623c (diff)
downloadvim-git-158ea175a99fc23eae1b0a5ee9a81cdd973854a6.tar.gz
patch 8.2.1000: get error when leaving Ex mode with :visualv8.2.1000
Problem: Get error when leaving Ex mode with :visual and a CmdLineEnter autocommand was used. Solution: Reset ex_pressedreturn. (closes #6293)
Diffstat (limited to 'src/testdir/test_ex_mode.vim')
-rw-r--r--src/testdir/test_ex_mode.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/testdir/test_ex_mode.vim b/src/testdir/test_ex_mode.vim
index d23e0ad93..32c65448f 100644
--- a/src/testdir/test_ex_mode.vim
+++ b/src/testdir/test_ex_mode.vim
@@ -166,6 +166,17 @@ func Test_ex_mode_errors()
endtry
call assert_equal(1, caught_e565)
au! InsertCharPre
+
+ new
+ au CmdLineEnter * call ExEnterFunc()
+ func ExEnterFunc()
+
+ endfunc
+ call feedkeys("gQvi\r", 'xt')
+
+ au! CmdLineEnter
+ delfunc ExEnterFunc
+ quit
endfunc
" vim: shiftwidth=2 sts=2 expandtab