mirror of
https://github.com/neovim/neovim.git
synced 2025-11-25 19:50:45 +00:00
vim-patch:8.0.0451: some macros are in lower case
Problem: Some macros are in lower case.
Solution: Make a few more macros upper case. Avoid lower case macros use an
argument twice.
91acfffc1e
This commit is contained in:
@@ -2824,11 +2824,12 @@ syn_add_end_off (
|
||||
base = ml_get_buf(syn_buf, result->lnum, FALSE);
|
||||
p = base + col;
|
||||
if (off > 0) {
|
||||
while (off-- > 0 && *p != NUL)
|
||||
mb_ptr_adv(p);
|
||||
while (off-- > 0 && *p != NUL) {
|
||||
MB_PTR_ADV(p);
|
||||
}
|
||||
} else {
|
||||
while (off++ < 0 && base < p) {
|
||||
mb_ptr_back(base, p);
|
||||
MB_PTR_BACK(base, p);
|
||||
}
|
||||
}
|
||||
col = (int)(p - base);
|
||||
@@ -2873,11 +2874,11 @@ syn_add_start_off (
|
||||
p = base + col;
|
||||
if (off > 0) {
|
||||
while (off-- && *p != NUL) {
|
||||
mb_ptr_adv(p);
|
||||
MB_PTR_ADV(p);
|
||||
}
|
||||
} else {
|
||||
while (off++ && base < p) {
|
||||
mb_ptr_back(base, p);
|
||||
MB_PTR_BACK(base, p);
|
||||
}
|
||||
}
|
||||
col = (int)(p - base);
|
||||
|
||||
Reference in New Issue
Block a user