aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-09-20 01:31:01 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-09-21 08:43:07 -0400
commitb853b6e4ea1269ab7ae766bd71d9bafd54dc2b98 (patch)
treee5fded64a09eb31a437d9605379061a43716dea7 /src/nvim/testdir
parent42a05130955829847e68c1af5add386596b697fd (diff)
downloadrneovim-b853b6e4ea1269ab7ae766bd71d9bafd54dc2b98.tar.gz
rneovim-b853b6e4ea1269ab7ae766bd71d9bafd54dc2b98.tar.bz2
rneovim-b853b6e4ea1269ab7ae766bd71d9bafd54dc2b98.zip
vim-patch:8.0.1109: timer causes error on exit from Ex mode
Problem: Timer causes error on exit from Ex mode. (xtal8) Solution: save and restore the ex_pressedreturn flag. (Christian Brabandt, closes vim/vim#2079) https://github.com/vim/vim/commit/f5291f301e9322545f0621b2157e93050d1d4fb3
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_timers.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_timers.vim b/src/nvim/testdir/test_timers.vim
index 24c735865c..ab5d89d675 100644
--- a/src/nvim/testdir/test_timers.vim
+++ b/src/nvim/testdir/test_timers.vim
@@ -252,4 +252,15 @@ func Test_peek_and_get_char()
call timer_stop(intr)
endfunc
+func Test_ex_mode()
+ " Function with an empty line.
+ func Foo(...)
+
+ endfunc
+ let timer = timer_start(40, function('g:Foo'), {'repeat':-1})
+ " This used to throw error E749.
+ exe "normal Qsleep 100m\rvi\r"
+ call timer_stop(timer)
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab