mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
patch 8.2.1000: get error when leaving Ex mode with :visual
Problem: Get error when leaving Ex mode with :visual and a CmdLineEnter autocommand was used. Solution: Reset ex_pressedreturn. (closes #6293)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user