diff options
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index db611823fc..67cd5a3094 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -1908,7 +1908,7 @@ static char_u *fname_match(regprog_T *prog, char_u *name) else { /* Replace $(HOME) with '~' and try matching again. */ p = home_replace_save(NULL, name); - if (p != NULL && vim_regexec(®match, p, (colnr_T)0)) + if (vim_regexec(®match, p, (colnr_T)0)) match = name; free(p); } |