Mercurial > vim
changeset 29430:90565e49a13e v9.0.0057
patch 9.0.0057: has('patch-xxx') returns true
Commit: https://github.com/vim/vim/commit/5154a8880034b7bb94186d37bcecc6ee1a96f732
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jul 18 20:48:50 2022 +0100
patch 9.0.0057: has('patch-xxx') returns true
Problem: has('patch-xxx') returns true.
Solution: Check for digit. (closes https://github.com/vim/vim/issues/10751)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 18 Jul 2022 22:00:04 +0200 |
parents | aeba55253de4 |
children | 6d6fa84d617c |
files | src/evalfunc.c src/testdir/test_expr.vim src/version.c |
diffstat | 3 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)