Problem: CTRL-A on hex number in Visual block mode is incorrect.
Solution: Account for the "0x". (Hirohito Higashi)
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);
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
\ 1:.put =col('.')
:set nrformats&vim
+:" Test 21
+:/^S21=/+,/^E21=/-y a
+:/^E21=/+put a
+:set nrformats&vim
+\16f3\ 1
+
:" Save the report
:/^# Test 1/,$w! test.out
:qa!
+# Test 21
+S21====
+0x123456
+E21====
+
+
+
ENDTEST
1
+# Test 21
+S21====
+0x123456
+E21====
+
+0x124456
+
+
ENDTEST
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 848,
/**/
847,
/**/