summaryrefslogtreecommitdiff
path: root/src/filepath.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-06 23:49:50 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-06 23:49:50 +0200
commit40655d501649e0b73e12f940b56f462dee44e06c (patch)
treebe66d7aa8e4ca3a90b392c95fe753c3783884280 /src/filepath.c
parentc74fbfedfa2df384cca5f6763e2c9e5c0ca6d513 (diff)
downloadvim-git-40655d501649e0b73e12f940b56f462dee44e06c.tar.gz
patch 8.2.0525: Win32: typo in assignment and misplaced parenv8.2.0525
Problem: Win32: typo in assignment and misplaced paren. Solution: Fix the syntax.
Diffstat (limited to 'src/filepath.c')
-rw-r--r--src/filepath.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/filepath.c b/src/filepath.c
index c37455e85..81f90c339 100644
--- a/src/filepath.c
+++ b/src/filepath.c
@@ -3168,7 +3168,7 @@ dos_expandpath(
break; // out of memory
if (*wfb.cAlternateFileName == NUL)
- p_alt == NULL;
+ p_alt = NULL;
else
p_alt = utf16_to_enc(wfb.cAlternateFileName, NULL);
@@ -3179,10 +3179,9 @@ dos_expandpath(
&& p[1] != NUL && (p[1] != '.' || p[2] != NUL)))
&& (matchname == NULL
|| (regmatch.regprog != NULL
- && (vim_regexec(&regmatch, p, (colnr_T)0)
+ && (vim_regexec(&regmatch, p, (colnr_T)0)
|| (p_alt != NULL
- && vim_regexec(&regmatch, p_alt, (colnr_T)0)))
- ))
+ && vim_regexec(&regmatch, p_alt, (colnr_T)0))))
|| ((flags & EW_NOTWILD)
&& fnamencmp(path + (s - buf), p, e - s) == 0)))
{