forked from aniani/vim
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user