forked from aniani/vim
patch 8.2.2871: unnessary VIM_ISDIGIT() calls, badly indented code
Problem: Unnessary VIM_ISDIGIT() calls, badly indented code. Solution: Call skipdigits() on the next character. Improve indenting. (Dominique Pellé, closes #8227)
This commit is contained in:
committed by
Bram Moolenaar
parent
796139ae3a
commit
4781d6fd86
@@ -169,8 +169,7 @@ buf_init_chartab(
|
||||
}
|
||||
if (VIM_ISDIGIT(*p))
|
||||
c = getdigits(&p);
|
||||
else
|
||||
if (has_mbyte)
|
||||
else if (has_mbyte)
|
||||
c = mb_ptr2char_adv(&p);
|
||||
else
|
||||
c = *p++;
|
||||
@@ -180,8 +179,7 @@ buf_init_chartab(
|
||||
++p;
|
||||
if (VIM_ISDIGIT(*p))
|
||||
c2 = getdigits(&p);
|
||||
else
|
||||
if (has_mbyte)
|
||||
else if (has_mbyte)
|
||||
c2 = mb_ptr2char_adv(&p);
|
||||
else
|
||||
c2 = *p++;
|
||||
|
Reference in New Issue
Block a user