aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 5e0dac5e55..d4c21bb33f 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -5343,8 +5343,8 @@ void fix_help_buffer(void)
* files. This uses the very first line in the help file.
*/
char_u *const fname = path_tail(curbuf->b_fname);
- if (fnamecmp(fname, "help.txt") == 0
- || (fnamencmp(fname, "help.", 5) == 0
+ if (FNAMECMP(fname, "help.txt") == 0
+ || (FNAMENCMP(fname, "help.", 5) == 0
&& ASCII_ISALPHA(fname[5])
&& ASCII_ISALPHA(fname[6])
&& TOLOWER_ASC(fname[7]) == 'x'
@@ -5402,18 +5402,18 @@ void fix_help_buffer(void)
if (e1 == NULL || e2 == NULL) {
continue;
}
- if (fnamecmp(e1, ".txt") != 0
- && fnamecmp(e1, fname + 4) != 0) {
+ if (FNAMECMP(e1, ".txt") != 0
+ && FNAMECMP(e1, fname + 4) != 0) {
// Not .txt and not .abx, remove it.
XFREE_CLEAR(fnames[i1]);
continue;
}
if (e1 - f1 != e2 - f2
- || fnamencmp(f1, f2, e1 - f1) != 0) {
+ || FNAMENCMP(f1, f2, e1 - f1) != 0) {
continue;
}
- if (fnamecmp(e1, ".txt") == 0
- && fnamecmp(e2, fname + 4) == 0) {
+ if (FNAMECMP(e1, ".txt") == 0
+ && FNAMECMP(e2, fname + 4) == 0) {
// use .abx instead of .txt
XFREE_CLEAR(fnames[i1]);
}