mirror of
https://github.com/neovim/neovim.git
synced 2025-09-21 02:38:19 +00:00
vim-patch:8.2.3551: checking first character of url twice (#17910)
Problem: Checking first character of url twice.
Solution: Only check once. (closes vim/vim#9026)
94e7d345c1
This commit is contained in:
@@ -1777,7 +1777,7 @@ int path_with_url(const char *fname)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check body: alpha or dash
|
// 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
|
// check last char is not a dash
|
||||||
if (p[-1] == '-') {
|
if (p[-1] == '-') {
|
||||||
|
Reference in New Issue
Block a user