mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 15:28:17 +00:00
vim-patch:7.4.1660
Problem: has('patch-7.4.1') doesn't work.
Solution: Fix off-by-one error. (Thinca)
819821c5a9
This commit is contained in:
@@ -10658,7 +10658,7 @@ static void f_has(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
if (!n) {
|
||||
if (STRNICMP(name, "patch", 5) == 0) {
|
||||
if (name[5] == '-'
|
||||
&& strlen(name) > 11
|
||||
&& strlen(name) >= 11
|
||||
&& ascii_isdigit(name[6])
|
||||
&& ascii_isdigit(name[8])
|
||||
&& ascii_isdigit(name[10])) {
|
||||
|
Reference in New Issue
Block a user