From 94e7d345c156a722bb161b73238c4ba1d27ec586 Mon Sep 17 00:00:00 2001 From: itchyny Date: Thu, 21 Oct 2021 18:01:13 +0100 Subject: [PATCH] patch 8.2.3551: checking first character of url twice Problem: Checking first character of url twice. Solution: Only check once. (closes #9026) --- src/misc1.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/misc1.c b/src/misc1.c index 62eba0206..109b7bb0c 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -2643,7 +2643,7 @@ path_with_url(char_u *fname) return 0; // check body: alpha or dash - for (p = fname; (isalpha(*p) || (*p == '-')); ++p) + for (p = fname + 1; (isalpha(*p) || (*p == '-')); ++p) ; // check last char is not a dash diff --git a/src/version.c b/src/version.c index e4f72bd67..75c35196b 100644 --- a/src/version.c +++ b/src/version.c @@ -757,6 +757,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3551, /**/ 3550, /**/ -- 2.50.1