Mercurial > vim
view src/testdir/test_feedkeys.vim @ 15991:f362d695bcf9 v8.1.1001
patch 8.1.1001: Visual area not correct when using 'cursorline'
commit https://github.com/vim/vim/commit/8156ed37558231a8167a1a61a147713d84c9af59
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 9 11:46:15 2019 +0100
patch 8.1.1001: Visual area not correct when using 'cursorline'
Problem: Visual area not correct when using 'cursorline'.
Solution: Update w_last_cursorline also in Visual mode. (Hirohito Higashi,
closes #4086)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 09 Mar 2019 12:00:05 +0100 |
parents | 6b70b9cdebfc |
children | 08940efa6b4e |
line wrap: on
line source
" 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