aboutsummaryrefslogtreecommitdiff
path: root/test/old/testdir/test_cursor_func.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-03-07 21:23:40 +0800
committerGitHub <noreply@github.com>2023-03-07 21:23:40 +0800
commit7a462c10d522e1b650979e810ad3b137224bb2b0 (patch)
treec958b46244b7008bd61de3b8150ccf6cdabb4f1d /test/old/testdir/test_cursor_func.vim
parent1637bcce7ba52c4c5c451308f8a3adfedde18a2a (diff)
parent08d0f99ae122b21e9470d58224edd69d1615ee3d (diff)
downloadrneovim-7a462c10d522e1b650979e810ad3b137224bb2b0.tar.gz
rneovim-7a462c10d522e1b650979e810ad3b137224bb2b0.tar.bz2
rneovim-7a462c10d522e1b650979e810ad3b137224bb2b0.zip
Merge pull request #22558 from zeertzjq/vim-8.2.3969
Diffstat (limited to 'test/old/testdir/test_cursor_func.vim')
-rw-r--r--test/old/testdir/test_cursor_func.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/old/testdir/test_cursor_func.vim b/test/old/testdir/test_cursor_func.vim
index bb8e7cd5c5..239eff5db5 100644
--- a/test/old/testdir/test_cursor_func.vim
+++ b/test/old/testdir/test_cursor_func.vim
@@ -40,6 +40,18 @@ func Test_move_cursor()
quit!
endfunc
+func Test_curswant_maxcol()
+ new
+ call setline(1, 'foo')
+
+ " Test that after "$" command curswant is set to the same value as v:maxcol.
+ normal! 1G$
+ call assert_equal(v:maxcol, getcurpos()[4])
+ call assert_equal(v:maxcol, winsaveview().curswant)
+
+ quit!
+endfunc
+
" Very short version of what matchparen does.
function s:Highlight_Matching_Pair()
let save_cursor = getcurpos()