diff options
author | oni-link <knil.ino@gmail.com> | 2016-01-28 00:45:26 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-01-28 00:46:38 -0500 |
commit | db77b7bc9e510f790064333473abde98e0284af1 (patch) | |
tree | 000a661336029cbb787797b5b7bdaa4603360fd9 /src/nvim/eval.c | |
parent | 894fcb778e123a9986be480e94dc78b545e01ec4 (diff) | |
download | rneovim-db77b7bc9e510f790064333473abde98e0284af1.tar.gz rneovim-db77b7bc9e510f790064333473abde98e0284af1.tar.bz2 rneovim-db77b7bc9e510f790064333473abde98e0284af1.zip |
file_pat_to_reg_pat(): handle empty string.
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 25f3cbf180..33c584eede 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -10792,7 +10792,7 @@ static void f_glob2regpat(typval_T *argvars, typval_T *rettv) char_u *pat = get_tv_string_chk(&argvars[0]); // NULL on type error rettv->v_type = VAR_STRING; - rettv->vval.v_string = (pat == NULL || *pat == NUL) + rettv->vval.v_string = (pat == NULL) ? NULL : file_pat_to_reg_pat(pat, NULL, NULL, false); } |