aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-01-31 08:12:29 +0800
committerGitHub <noreply@github.com>2022-01-31 08:12:29 +0800
commit4dcc7bcbedbb2a9e9166b94900d4c3e363468578 (patch)
tree387277d63362a991a8466474812e56f657da8061 /src/nvim/testdir
parent58d01d3403735a5b291015cf3abbdadfface74a1 (diff)
downloadrneovim-4dcc7bcbedbb2a9e9166b94900d4c3e363468578.tar.gz
rneovim-4dcc7bcbedbb2a9e9166b94900d4c3e363468578.tar.bz2
rneovim-4dcc7bcbedbb2a9e9166b94900d4c3e363468578.zip
vim-patch:8.2.3532: the previous '' mark is restored after moving the cursor (#17246)
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_marks.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_marks.vim b/src/nvim/testdir/test_marks.vim
index 4ef42946cb..6b9904ec0a 100644
--- a/src/nvim/testdir/test_marks.vim
+++ b/src/nvim/testdir/test_marks.vim
@@ -25,6 +25,16 @@ function! Test_Incr_Marks()
enew!
endfunction
+func Test_previous_jump_mark()
+ new
+ call setline(1, ['']->repeat(6))
+ normal Ggg
+ call assert_equal(6, getpos("''")[1])
+ normal jjjjj
+ call assert_equal(6, getpos("''")[1])
+ bwipe!
+endfunc
+
func Test_setpos()
new Xone
let onebuf = bufnr('%')