| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.848 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.4.848 |
| Problem: CTRL-A on hex number in Visual block mode is incorrect. |
| Solution: Account for the "0x". (Hirohito Higashi) |
| Files: src/charset.c, src/testdir/test_increment.in, |
| src/testdir/test_increment.ok |
| |
| |
| |
| |
| |
| *** 1909,1914 **** |
| --- 1909,1916 ---- |
| else if (hex != 0 || dohex > 1) |
| { |
| /* hex */ |
| + if (hex != 0) |
| + n += 2; /* skip over "0x" */ |
| while (vim_isxdigit(*ptr)) |
| { |
| un = 16 * un + (unsigned long)hex2nr(*ptr); |
| |
| |
| |
| *** 277,283 **** |
| Expected: |
| 1) <Ctrl-a> and cursor is on a |
| b |
| ! |
| |
| |
| STARTTEST |
| --- 277,291 ---- |
| 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,406 **** |
| --- 409,420 ---- |
| :.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,599 **** |
| --- 608,620 ---- |
| |
| |
| |
| + # Test 21 |
| + S21==== |
| + 0x123456 |
| + E21==== |
| + |
| + |
| + |
| |
| ENDTEST |
| |
| |
| |
| |
| *** 280,285 **** |
| --- 280,293 ---- |
| 1 |
| |
| |
| + # Test 21 |
| + S21==== |
| + 0x123456 |
| + E21==== |
| + |
| + 0x124456 |
| + |
| + |
| |
| ENDTEST |
| |
| |
| |
| |
| *** 743,744 **** |
| --- 743,746 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 848, |
| /**/ |
| |
| -- |
| An SQL statement walks into a bar. He approaches two tables |
| and says, "Mind if I join you?" |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ an exciting new programming language -- http://www.Zimbu.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |