mirror of
https://github.com/neovim/neovim.git
synced 2025-09-10 21:38:19 +00:00
Replace vim_isxdigit() with to ascii_isxdigit() defined in ascii.h
This commit is contained in:
@@ -4241,14 +4241,14 @@ int do_addsub(int command, linenr_T Prenum1)
|
||||
*/
|
||||
col = curwin->w_cursor.col;
|
||||
if (dohex)
|
||||
while (col > 0 && vim_isxdigit(ptr[col]))
|
||||
while (col > 0 && ascii_isxdigit(ptr[col]))
|
||||
--col;
|
||||
if ( dohex
|
||||
&& col > 0
|
||||
&& (ptr[col] == 'X'
|
||||
|| ptr[col] == 'x')
|
||||
&& ptr[col - 1] == '0'
|
||||
&& vim_isxdigit(ptr[col + 1])) {
|
||||
&& ascii_isxdigit(ptr[col + 1])) {
|
||||
/*
|
||||
* Found hexadecimal number, move to its start.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user