# HG changeset patch # User Bram Moolenaar # Date 1634836504 -7200 # Node ID 9b2c6cea573c924e25e94b2b130e272f16e829f8 # Parent a65546a90889e613fc658fbc078388053553fe16 patch 8.2.3551: checking first character of url twice Commit: https://github.com/vim/vim/commit/94e7d345c156a722bb161b73238c4ba1d27ec586 Author: itchyny Date: Thu Oct 21 18:01:13 2021 +0100 patch 8.2.3551: checking first character of url twice Problem: Checking first character of url twice. Solution: Only check once. (closes https://github.com/vim/vim/issues/9026) diff --git a/src/misc1.c b/src/misc1.c --- 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 --- a/src/version.c +++ b/src/version.c @@ -758,6 +758,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3551, +/**/ 3550, /**/ 3549,