summaryrefslogtreecommitdiff
path: root/src/fold.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-12 20:10:05 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-12 20:10:05 +0100
commit1c46544412382db8b3203d6c78e550df885540bd (patch)
treed4dc51020d3ebdbee4548b0d5628221f921af2f3 /src/fold.c
parent91acfffc1e6c0d8c2abfb186a0e79a5bf19c3f3f (diff)
downloadvim-git-1c46544412382db8b3203d6c78e550df885540bd.tar.gz
patch 8.0.0452: some macros are in lower casev8.0.0452
Problem: Some macros are in lower case. Solution: Make a few more macros upper case.
Diffstat (limited to 'src/fold.c')
-rw-r--r--src/fold.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fold.c b/src/fold.c
index 9597ab831..a186bef4d 100644
--- a/src/fold.c
+++ b/src/fold.c
@@ -1970,7 +1970,7 @@ get_foldtext(
long count = (long)(lnume - lnum + 1);
vim_snprintf((char *)buf, FOLD_TEXT_LEN,
- ngettext("+--%3ld line folded ",
+ NGETTEXT("+--%3ld line folded ",
"+--%3ld lines folded ", count),
count);
text = buf;
@@ -1998,7 +1998,7 @@ foldtext_cleanup(char_u *str)
/* Ignore leading and trailing white space in 'commentstring'. */
cms_start = skipwhite(curbuf->b_p_cms);
cms_slen = (int)STRLEN(cms_start);
- while (cms_slen > 0 && vim_iswhite(cms_start[cms_slen - 1]))
+ while (cms_slen > 0 && VIM_ISWHITE(cms_start[cms_slen - 1]))
--cms_slen;
/* locate "%s" in 'commentstring', use the part before and after it. */
@@ -2009,7 +2009,7 @@ foldtext_cleanup(char_u *str)
cms_slen = (int)(cms_end - cms_start);
/* exclude white space before "%s" */
- while (cms_slen > 0 && vim_iswhite(cms_start[cms_slen - 1]))
+ while (cms_slen > 0 && VIM_ISWHITE(cms_start[cms_slen - 1]))
--cms_slen;
/* skip "%s" and white space after it */
@@ -2033,7 +2033,7 @@ foldtext_cleanup(char_u *str)
/* May remove 'commentstring' start. Useful when it's a double
* quote and we already removed a double quote. */
- for (p = s; p > str && vim_iswhite(p[-1]); --p)
+ for (p = s; p > str && VIM_ISWHITE(p[-1]); --p)
;
if (p >= str + cms_slen
&& STRNCMP(p - cms_slen, cms_start, cms_slen) == 0)
@@ -2058,7 +2058,7 @@ foldtext_cleanup(char_u *str)
}
if (len != 0)
{
- while (vim_iswhite(s[len]))
+ while (VIM_ISWHITE(s[len]))
++len;
STRMOVE(s, s + len);
}