mirror of
https://github.com/neovim/neovim.git
synced 2026-01-22 04:40:35 +00:00
Problem: Using feedkeys() with an empty string disregards 'x' option.
Solution: Make 'x' work with an empty string. (Thinca)
When integrating the patch to nvim, used same logic but different code
based on nvim codebase. New test passed.
74c5bbf134
11 lines
226 B
VimL
11 lines
226 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('.'))
|
|
quit!
|
|
endfunc
|