vim-patch:7.4.634

Problem:    Marks are not restored after redo + undo.
Solution:   Fix the way marks are restored. (Olaf Dabrunz)

f65aad5554
35e7594dd4
This commit is contained in:
watiko
2016-01-14 12:43:07 +09:00
parent 2f52ae18e7
commit 40149a9dbf
5 changed files with 33 additions and 3 deletions

View File

@@ -28,6 +28,7 @@ SCRIPTS := \
test_charsearch.out \
test_close_count.out \
test_command_count.out \
test_marks.out \
NEW_TESTS = test_increment.res

View File

@@ -0,0 +1,18 @@
Tests for marks.
STARTTEST
:so small.vim
:" test that a deleted mark is restored after delete-undo-redo-undo
:/^\t/+1
:set nocp viminfo+=nviminfo
madduu
:let a = string(getpos("'a"))
:$put ='Mark after delete-undo-redo-undo: '.a
:/^\t/,$wq! test.out
ENDTEST
textline A
textline B
textline C
Results:

View File

@@ -0,0 +1,6 @@
textline A
textline B
textline C
Results:
Mark after delete-undo-redo-undo: [0, 15, 2, 0]