aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-01-14 12:29:46 +0100
committerGitHub <noreply@github.com>2017-01-14 12:29:46 +0100
commit58ba3bcbefcad43c7fb163cd54d9a4f6b98a7100 (patch)
tree91adebd27a2b5bcbec2a0fdde62a31d872f9f602 /src/nvim/testdir
parent947f1ebcb93ea0f836f3e81ab9365d8539dcf5e5 (diff)
parent980bf1e548582bdcd86e6aefe2a0323cbce60f19 (diff)
downloadrneovim-58ba3bcbefcad43c7fb163cd54d9a4f6b98a7100.tar.gz
rneovim-58ba3bcbefcad43c7fb163cd54d9a4f6b98a7100.tar.bz2
rneovim-58ba3bcbefcad43c7fb163cd54d9a4f6b98a7100.zip
Merge #5936 from blueyed/vim-8.0.0121
vim-patch:8.0.0121
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
+