comparison src/testdir/test_marks.vim @ 25998:902aab6dc499 v8.2.3532

patch 8.2.3532: the previous '' mark is restored after moving the cursor Commit: https://github.com/vim/vim/commit/e08aee60abc59f517d3e263fdb9ba4a0196d507c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 17 21:53:58 2021 +0100 patch 8.2.3532: the previous '' mark is restored after moving the cursor Problem: The previous '' mark is restored after moving the cursor to the original jump position. (Tony Chen) Solution: Forget the previous position after checking. (closes #8985)
author Bram Moolenaar <Bram@vim.org>
date Sun, 17 Oct 2021 23:00:06 +0200
parents 08940efa6b4e
children 14c0d0c72bcd
comparison
equal deleted inserted replaced
25997:847b1374b39e 25998:902aab6dc499
22 execute "normal! \<C-A>`[v`]rAjwvjw\<C-X>`[v`]rX" 22 execute "normal! \<C-A>`[v`]rAjwvjw\<C-X>`[v`]rX"
23 call assert_equal("AAA 123 123", getline(1)) 23 call assert_equal("AAA 123 123", getline(1))
24 call assert_equal("123 XXXXXXX", getline(2)) 24 call assert_equal("123 XXXXXXX", getline(2))
25 call assert_equal("XXX 123 123", getline(3)) 25 call assert_equal("XXX 123 123", getline(3))
26 enew! 26 enew!
27 endfunc
28
29 func Test_previous_jump_mark()
30 new
31 call setline(1, ['']->repeat(6))
32 normal Ggg
33 call assert_equal(6, getpos("''")[1])
34 normal jjjjj
35 call assert_equal(6, getpos("''")[1])
36 bwipe!
27 endfunc 37 endfunc
28 38
29 func Test_setpos() 39 func Test_setpos()
30 new Xone 40 new Xone
31 let onebuf = bufnr('%') 41 let onebuf = bufnr('%')