diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-07-18 20:48:50 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-07-18 20:48:50 +0100 |
commit | 5154a8880034b7bb94186d37bcecc6ee1a96f732 (patch) | |
tree | 43c4b2d0409f9c7720bcad38d21a7d877fe4ad70 /src/evalfunc.c | |
parent | bd683e3a79d73e608fec0df7cee1109a27f2e70a (diff) | |
download | vim-git-5154a8880034b7bb94186d37bcecc6ee1a96f732.tar.gz |
patch 9.0.0057: has('patch-xxx') returns truev9.0.0057
Problem: has('patch-xxx') returns true.
Solution: Check for digit. (closes #10751)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index f51aade49..580f5d1bf 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -6473,7 +6473,7 @@ f_has(typval_T *argvars, typval_T *rettv) || (minor == VIM_VERSION_MINOR && has_patch(atoi((char *)name + 10)))))); } - else + else if (isdigit(name[5])) n = has_patch(atoi((char *)name + 5)); } else if (STRICMP(name, "vim_starting") == 0) |