mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 06:58:35 +00:00
vim-patch:8.0.0452: some macros are in lower case (#8505)
Problem: Some macros are in lower case.
Solution: Make a few more macros upper case.
1c46544412
This commit is contained in:

committed by
Justin M. Keyes

parent
c7e6bb2467
commit
77192889f0
@@ -8827,7 +8827,7 @@ static void f_foldtext(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
unsigned long count = (unsigned long)(foldend - foldstart + 1);
|
unsigned long count = (unsigned long)(foldend - foldstart + 1);
|
||||||
txt = ngettext("+-%s%3ld line: ", "+-%s%3ld lines: ", count);
|
txt = NGETTEXT("+-%s%3ld line: ", "+-%s%3ld lines: ", count);
|
||||||
r = xmalloc(STRLEN(txt)
|
r = xmalloc(STRLEN(txt)
|
||||||
+ STRLEN(dashes) // for %s
|
+ STRLEN(dashes) // for %s
|
||||||
+ 20 // for %3ld
|
+ 20 // for %3ld
|
||||||
|
@@ -1806,7 +1806,7 @@ char_u *get_foldtext(win_T *wp, linenr_T lnum, linenr_T lnume,
|
|||||||
unsigned long count = (unsigned long)(lnume - lnum + 1);
|
unsigned long count = (unsigned long)(lnume - lnum + 1);
|
||||||
|
|
||||||
vim_snprintf((char *)buf, FOLD_TEXT_LEN,
|
vim_snprintf((char *)buf, FOLD_TEXT_LEN,
|
||||||
ngettext("+--%3ld line folded",
|
NGETTEXT("+--%3ld line folded",
|
||||||
"+--%3ld lines folded ", count),
|
"+--%3ld lines folded ", count),
|
||||||
count);
|
count);
|
||||||
text = buf;
|
text = buf;
|
||||||
|
@@ -10,10 +10,11 @@
|
|||||||
# else
|
# else
|
||||||
# define N_(x) x
|
# define N_(x) x
|
||||||
# endif
|
# endif
|
||||||
|
# define NGETTEXT(x, xs, n) ngettext(x, xs, n)
|
||||||
#else
|
#else
|
||||||
# define _(x) ((char *)(x))
|
# define _(x) ((char *)(x))
|
||||||
# define N_(x) x
|
# define N_(x) x
|
||||||
# define ngettext(x, xs, n) ((n) == 1 ? (x) : (xs))
|
# define NGETTEXT(x, xs, n) ((n) == 1 ? (x) : (xs))
|
||||||
# define bindtextdomain(x, y) // empty
|
# define bindtextdomain(x, y) // empty
|
||||||
# define bind_textdomain_codeset(x, y) // empty
|
# define bind_textdomain_codeset(x, y) // empty
|
||||||
# define textdomain(x) // empty
|
# define textdomain(x) // empty
|
||||||
|
Reference in New Issue
Block a user