0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.3551: checking first character of url twice

Problem:    Checking first character of url twice.
Solution:   Only check once. (closes #9026)
This commit is contained in:
itchyny 2021-10-21 18:01:13 +01:00 committed by Bram Moolenaar
parent ae38a9db77
commit 94e7d345c1
2 changed files with 3 additions and 1 deletions

View 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

View File

@ -757,6 +757,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3551,
/**/
3550,
/**/