Mercurial > vim
comparison src/testdir/test_timers.vim @ 12459:937356f8f8d6 v8.0.1109
patch 8.0.1109: timer causes error on exit from Ex mode
commit https://github.com/vim/vim/commit/f5291f301e9322545f0621b2157e93050d1d4fb3
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 14 22:55:37 2017 +0200
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 #2079)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 14 Sep 2017 23:00:04 +0200 |
parents | ab0d827151a1 |
children | 440d934bd616 |
comparison
equal
deleted
inserted
replaced
12458:a99b6c31b925 | 12459:937356f8f8d6 |
---|---|
244 let c = getchar() | 244 let c = getchar() |
245 call assert_equal(char2nr('a'), c) | 245 call assert_equal(char2nr('a'), c) |
246 call timer_stop(intr) | 246 call timer_stop(intr) |
247 endfunc | 247 endfunc |
248 | 248 |
249 func Test_ex_mode() | |
250 " Function with an empty line. | |
251 func Foo(...) | |
252 | |
253 endfunc | |
254 let timer = timer_start(40, function('g:Foo'), {'repeat':-1}) | |
255 " This used to throw error E749. | |
256 exe "normal Qsleep 100m\rvi\r" | |
257 call timer_stop(timer) | |
258 endfunc | |
259 | |
249 " vim: shiftwidth=2 sts=2 expandtab | 260 " vim: shiftwidth=2 sts=2 expandtab |