aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorwatiko <service@mail.watiko.net>2016-01-14 13:56:41 +0900
committerwatiko <service@mail.watiko.net>2016-02-01 03:47:09 +0900
commit3a94e06abbcc0dfff658b626891ec308f7582180 (patch)
tree44f0097b4b22535a240e9299935025ff2b0c3180 /src/nvim/testdir
parent40149a9dbf475ad1d0dec9a9494a32c26a6536ce (diff)
downloadrneovim-3a94e06abbcc0dfff658b626891ec308f7582180.tar.gz
rneovim-3a94e06abbcc0dfff658b626891ec308f7582180.tar.bz2
rneovim-3a94e06abbcc0dfff658b626891ec308f7582180.zip
vim-patch:7.4.1085
Problem: The CTRL-A and CTRL-X commands do not update the '[ and '] marks. Solution: (Yukihiro Nakadaira) https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_marks.in18
-rw-r--r--src/nvim/testdir/test_marks.ok10
2 files changed, 27 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_marks.in b/src/nvim/testdir/test_marks.in
index 341f3ac30f..23c2fb65fe 100644
--- a/src/nvim/testdir/test_marks.in
+++ b/src/nvim/testdir/test_marks.in
@@ -8,11 +8,27 @@ STARTTEST
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
+STARTTEST
+:" test that CTRL-A and CTRL-X updates last changed mark '[, '].
+:/^123/
+:execute "normal! \<C-A>`[v`]rAjwvjw\<C-X>`[v`]rX"
+ENDTEST
+
+CTRL-A CTRL-X:
+123 123 123
+123 123 123
+123 123 123
+
+STARTTEST
+:g/^STARTTEST/.,/^ENDTEST/d
+:wq! test.out
+ENDTEST
+
Results:
diff --git a/src/nvim/testdir/test_marks.ok b/src/nvim/testdir/test_marks.ok
index dd1a3e43b5..e6c02ee7b0 100644
--- a/src/nvim/testdir/test_marks.ok
+++ b/src/nvim/testdir/test_marks.ok
@@ -1,6 +1,16 @@
+Tests for marks.
+
+
textline A
textline B
textline C
+
+CTRL-A CTRL-X:
+AAA 123 123
+123 XXXXXXX
+XXX 123 123
+
+
Results:
Mark after delete-undo-redo-undo: [0, 15, 2, 0]