mirror of
https://github.com/neovim/neovim.git
synced 2026-02-20 01:09:56 +10:00
vim-patch:8.2.3532: the previous '' mark is restored after moving the cursor (#17246)
This commit is contained in:
@@ -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('%')
|
||||
|
||||
Reference in New Issue
Block a user