forked from aniani/vim
Problem: Using feedkeys() with an empty string disregards 'x' option. Solution: Make 'x' work with an empty string. (Thinca)
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
|