aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2017-01-12 22:20:44 +0100
committerDaniel Hahler <git@thequod.de>2017-01-13 23:40:59 +0100
commita0b33b333ee46b87d62ab1a8d8d515e83fbbe635 (patch)
tree38348827c773a2372629cbdacd20bfffaf8982b2 /src/nvim/testdir
parentf68663542037aaa4ae954aacae7adf2e88b151d5 (diff)
downloadrneovim-a0b33b333ee46b87d62ab1a8d8d515e83fbbe635.tar.gz
rneovim-a0b33b333ee46b87d62ab1a8d8d515e83fbbe635.tar.bz2
rneovim-a0b33b333ee46b87d62ab1a8d8d515e83fbbe635.zip
vim-patch:8.0.0121
Problem: Setting 'cursorline' changes the curswant column. (Daniel Hahler) Solution: Add the P_RWINONLY flag. (closes vim/vim#1297) https://github.com/vim/vim/commit/a2477fd3490c1166522631eee53c57d34321086a
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_goto.vim15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_goto.vim b/src/nvim/testdir/test_goto.vim
index 2afd96b296..b6ac5720c3 100644
--- a/src/nvim/testdir/test_goto.vim
+++ b/src/nvim/testdir/test_goto.vim
@@ -18,3 +18,18 @@ func Test_gee_dee()
call assert_equal(14, col('.'))
quit!
endfunc
+
+" Check that setting 'cursorline' does not change curswant
+func Test_cursorline_keep_col()
+ new
+ call setline(1, ['long long long line', 'short line'])
+ normal ggfi
+ let pos = getcurpos()
+ normal j
+ set cursorline
+ normal k
+ call assert_equal(pos, getcurpos())
+ bwipe!
+ set nocursorline
+endfunc
+