mirror of
https://github.com/neovim/neovim.git
synced 2026-02-12 15:32:18 +10:00
vim-patch:7.4.1758
Problem: Triggering CursorHoldI when in CTRL-X mode causes problems.
Solution: Do not trigger CursorHoldI in CTRL-X mode. Add "!" flag to
feedkeys() (test with that didn't work though).
245c41070c
vim-patch:7.4.1759
Problem: When using feedkeys() in a timer the inserted characters are not
used right away.
Solution: Break the wait loop when characters have been added to typebuf.
use this for testing CursorHoldI.
40b1b5443c
vim-patch:7.4.1692
Problem: feedkeys('i', 'x') gets stuck, waits for a character to be typed.
Solution: Behave like ":normal". (Yasuhiro Matsumoto)
15 lines
345 B
VimL
15 lines
345 B
VimL
" Test feedkeys() function.
|
|
|
|
func Test_feedkeys_x_with_empty_string()
|
|
new
|
|
call feedkeys("ifoo\<Esc>")
|
|
call assert_equal('', getline('.'))
|
|
call feedkeys('', 'x')
|
|
call assert_equal('foo', getline('.'))
|
|
|
|
" check it goes back to normal mode immediately.
|
|
call feedkeys('i', 'x')
|
|
call assert_equal('foo', getline('.'))
|
|
quit!
|
|
endfunc
|