]> granicus.if.org Git - vim/commitdiff
patch 8.2.3551: checking first character of url twice v8.2.3551
authoritchyny <itchyny@hatena.ne.jp>
Thu, 21 Oct 2021 17:01:13 +0000 (18:01 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 21 Oct 2021 17:01:13 +0000 (18:01 +0100)
Problem:    Checking first character of url twice.
Solution:   Only check once. (closes #9026)

src/misc1.c
src/version.c

index 62eba0206db212685ebc070375a034d1153d87e4..109b7bb0cff3d8b353e907bf46bb4a3a0a847222 100644 (file)
@@ -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
index e4f72bd6720d431a4729c1b91a765cb0bd9241dc..75c35196b8b1f23c124de48b5b8ce1d91c66ed2e 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3551,
 /**/
     3550,
 /**/