mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 00:18:33 +00:00
vim-patch:7.4.848
Problem: CTRL-A on hex number in Visual block mode is incorrect.
Solution: Account for the "0x". (Hirohito Higashi)
5adfea1ac6
This commit is contained in:
@@ -1862,6 +1862,9 @@ void vim_str2nr(char_u *start, int *prep, int *len,
|
||||
}
|
||||
} else if ((pre == 'X') || (pre == 'x') || dohex > 1) {
|
||||
// hex
|
||||
if (pre != 0) {
|
||||
n += 2; // skip over "0x"
|
||||
}
|
||||
while (ascii_isxdigit(*ptr)) {
|
||||
un = 16 * un + (unsigned long)hex2nr(*ptr);
|
||||
ptr++;
|
||||
|
Reference in New Issue
Block a user