diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-09-14 17:44:29 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-09-14 17:46:07 -0400 |
commit | ce3d9503b2f47f592be5cee51af4f78285c69506 (patch) | |
tree | 9b49356d14307cb88dee5231efcd06ebb17017be | |
parent | 7be7ec98a22451ec75ce5eb9284fa1722b53c697 (diff) | |
download | rneovim-ce3d9503b2f47f592be5cee51af4f78285c69506.tar.gz rneovim-ce3d9503b2f47f592be5cee51af4f78285c69506.tar.bz2 rneovim-ce3d9503b2f47f592be5cee51af4f78285c69506.zip |
vim-patch:8.1.0212: preferred cursor column not set in interfaces
Problem: Preferred cursor column not set in interfaces.
Solution: Set w_set_curswant when setting the cursor. (David Hotham,
closes vim/vim#3060)
https://github.com/vim/vim/commit/53901442f37a59e5495165f91db5574c0b43ab04
This contains test_ruby changes only.
test_python changes were ported before.
-rw-r--r-- | src/nvim/testdir/test_ruby.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_ruby.vim b/src/nvim/testdir/test_ruby.vim index 01901d5db3..ef1a2d25b7 100644 --- a/src/nvim/testdir/test_ruby.vim +++ b/src/nvim/testdir/test_ruby.vim @@ -59,3 +59,16 @@ func Test_rubyfile() call assert_fails('rubyfile ' . tempfile) call delete(tempfile) endfunc + +func Test_set_cursor() + " Check that setting the cursor position works. + new + call setline(1, ['first line', 'second line']) + normal gg + rubydo $curwin.cursor = [1, 5] + call assert_equal([1, 6], [line('.'), col('.')]) + + " Check that movement after setting cursor position keeps current column. + normal j + call assert_equal([2, 6], [line('.'), col('.')]) +endfunc |