diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-12 19:22:36 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-12 19:22:36 +0100 |
commit | 91acfffc1e6c0d8c2abfb186a0e79a5bf19c3f3f (patch) | |
tree | 1923145c992a09b3adc06e40f02284ff0ef21bbd /src/search.c | |
parent | 47ffb905f363571072faefbd417938e7ff351a9f (diff) | |
download | vim-git-91acfffc1e6c0d8c2abfb186a0e79a5bf19c3f3f.tar.gz |
patch 8.0.0451: some macros are in lower casev8.0.0451
Problem: Some macros are in lower case.
Solution: Make a few more macros upper case. Avoid lower case macros use an
argument twice.
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/search.c b/src/search.c index 101bcff05..51d876019 100644 --- a/src/search.c +++ b/src/search.c @@ -3828,7 +3828,7 @@ in_html_tag( /* We search forward until the cursor, because searching backwards is * very slow for DBCS encodings. */ - for (p = line; p < line + curwin->w_cursor.col; mb_ptr_adv(p)) + for (p = line; p < line + curwin->w_cursor.col; MB_PTR_ADV(p)) if (*p == '>' || *p == '<') { lc = *p; @@ -3848,7 +3848,7 @@ in_html_tag( { if (*p == '<') /* find '<' under/before cursor */ break; - mb_ptr_back(line, p); + MB_PTR_BACK(line, p); if (*p == '>') /* find '>' before cursor */ break; } @@ -3859,7 +3859,7 @@ in_html_tag( pos.lnum = curwin->w_cursor.lnum; pos.col = (colnr_T)(p - line); - mb_ptr_adv(p); + MB_PTR_ADV(p); if (end_tag) /* check that there is a '/' after the '<' */ return *p == '/'; @@ -3974,7 +3974,7 @@ again: */ inc_cursor(); p = ml_get_cursor(); - for (cp = p; *cp != NUL && *cp != '>' && !vim_iswhite(*cp); mb_ptr_adv(cp)) + for (cp = p; *cp != NUL && *cp != '>' && !vim_iswhite(*cp); MB_PTR_ADV(cp)) ; len = (int)(cp - p); if (len == 0) |