aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-02-10 09:54:05 -0500
committerJames McCoy <jamessan@jamessan.com>2017-02-10 09:55:33 -0500
commit714db8bd6c525124d7aa1f0a3d9e3f01ee1cb73b (patch)
treeb2f0a3d6ce2a297c2da7438b6e9ea1401a984786
parentaf6bc3b3bfaa3c8b170648deddab3fdf4ea03735 (diff)
downloadrneovim-714db8bd6c525124d7aa1f0a3d9e3f01ee1cb73b.tar.gz
rneovim-714db8bd6c525124d7aa1f0a3d9e3f01ee1cb73b.tar.bz2
rneovim-714db8bd6c525124d7aa1f0a3d9e3f01ee1cb73b.zip
vim-patch:7.4.1962
Problem: Two test files for increment/decrement. Solution: Move the old style test into the new style test. (Hirohito Higashi, closes vim/vim#881) https://github.com/vim/vim/commit/52df117df724a7ad20affdf15214d2df2e507dcc
-rw-r--r--src/nvim/testdir/test_increment.vim21
-rw-r--r--src/nvim/version.c2
2 files changed, 22 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_increment.vim b/src/nvim/testdir/test_increment.vim
index a6578cf0c7..e53b569716 100644
--- a/src/nvim/testdir/test_increment.vim
+++ b/src/nvim/testdir/test_increment.vim
@@ -735,5 +735,26 @@ func Test_normal_increment_02()
call assert_equal([0, 2, 4, 0], getpos('.'))
endfunc
+" The test35 unified to this file.
+func Test_normal_increment_03()
+ call setline(1, ["100 0x100 077 0",
+ \ "100 0x100 077 ",
+ \ "100 0x100 077 0xfF 0xFf",
+ \ "100 0x100 077 "])
+ set nrformats=octal,hex
+ exec "norm! gg\<C-A>102\<C-X>\<C-A>l\<C-X>l\<C-A>64\<C-A>128\<C-X>$\<C-X>"
+ set nrformats=octal
+ exec "norm! j0\<C-A>102\<C-X>\<C-A>l\<C-X>2\<C-A>w65\<C-A>129\<C-X>blx6lD"
+ set nrformats=hex
+ exec "norm! j0101\<C-X>l257\<C-X>\<C-A>Txldt \<C-A> \<C-X> \<C-X>"
+ set nrformats=
+ exec "norm! j0200\<C-X>l100\<C-X>w78\<C-X>\<C-A>k"
+ call assert_equal(["0 0x0ff 0000 -1",
+ \ "0 1x100 0777777",
+ \ "-1 0x0 078 0xFE 0xfe",
+ \ "-100 -100x100 000 "], getline(1, '$'))
+ call assert_equal([0, 3, 25, 0], getpos('.'))
+endfunc
+
" vim: tabstop=2 shiftwidth=2 expandtab
diff --git a/src/nvim/version.c b/src/nvim/version.c
index d62ecc22cf..042c0f00a3 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -478,7 +478,7 @@ static int included_patches[] = {
// 1965 NA
1964,
// 1963 NA
- // 1962,
+ 1962,
1961,
1960,
// 1959 NA