diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/eval.c | 3 | ||||
-rw-r--r-- | src/testdir/test_alot.vim | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index 359956be1a..590834fe4a 100644 --- a/src/eval.c +++ b/src/eval.c @@ -12993,7 +12993,8 @@ f_glob2regpat(argvars, rettv) char_u *pat = get_tv_string_chk(&argvars[0]); rettv->v_type = VAR_STRING; - rettv->vval.v_string = file_pat_to_reg_pat(pat, NULL, NULL, FALSE); + rettv->vval.v_string = (pat == NULL) + ? NULL : file_pat_to_reg_pat(pat, NULL, NULL, FALSE); } /* diff --git a/src/testdir/test_alot.vim b/src/testdir/test_alot.vim index aceb073f69..97454335de 100644 --- a/src/testdir/test_alot.vim +++ b/src/testdir/test_alot.vim @@ -5,6 +5,7 @@ source test_backspace_opt.vim source test_cursor_func.vim source test_delete.vim source test_expand.vim +source test_glob2regpat.vim source test_json.vim source test_lispwords.vim source test_menu.vim diff --git a/src/version.c b/src/version.c index 073f551dd1..ee6ac48c4b 100644 --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1180, +/**/ 1179, /**/ 1178, |