diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-09-01 18:51:39 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-09-01 18:51:39 +0200 |
commit | 5adfea1ac63e252556bccce54e92e8e10b58f592 (patch) | |
tree | 04bc312038adebab2e9cd2fcee55df5366b0ae30 /src/testdir | |
parent | 8667d66ca923d361e00e6369cbff37283db5a432 (diff) | |
download | vim-5adfea1ac63e252556bccce54e92e8e10b58f592.zip |
patch 7.4.848
Problem: CTRL-A on hex number in Visual block mode is incorrect.
Solution: Account for the "0x". (Hirohito Higashi)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_increment.in | 23 | ||||
-rw-r--r-- | src/testdir/test_increment.ok | 8 |
2 files changed, 30 insertions, 1 deletions
diff --git a/src/testdir/test_increment.in b/src/testdir/test_increment.in index ecbc6f99a..2ae6b8a56 100644 --- a/src/testdir/test_increment.in +++ b/src/testdir/test_increment.in @@ -277,7 +277,15 @@ Text: Expected: 1) <Ctrl-a> and cursor is on a b - + +21) block-wise increment on part of hexadecimal +Text: +0x123456 + + Expected: + 1) Ctrl-V f3 <ctrl-a> +0x124456 + STARTTEST @@ -401,6 +409,12 @@ V3kg.. :.put =col('.') :set nrformats&vim +:" Test 21 +:/^S21=/+,/^E21=/-y a +:/^E21=/+put a +:set nrformats&vim +f3 + :" Save the report :/^# Test 1/,$w! test.out :qa! @@ -594,6 +608,13 @@ E20==== +# Test 21 +S21==== +0x123456 +E21==== + + + ENDTEST diff --git a/src/testdir/test_increment.ok b/src/testdir/test_increment.ok index 48e722f03..15d0e9b50 100644 --- a/src/testdir/test_increment.ok +++ b/src/testdir/test_increment.ok @@ -280,6 +280,14 @@ b 1 +# Test 21 +S21==== +0x123456 +E21==== + +0x124456 + + ENDTEST |