summaryrefslogtreecommitdiffstats
path: root/src/misc1.c
diff options
context:
space:
mode:
authoritchyny <itchyny@hatena.ne.jp>2021-10-21 18:01:13 +0100
committerBram Moolenaar <Bram@vim.org>2021-10-21 18:01:13 +0100
commit94e7d345c156a722bb161b73238c4ba1d27ec586 (patch)
tree7a53dad3f5847e99065cad7c0f7eeae1613ea1c5 /src/misc1.c
parentae38a9db7770b38889fbf06908cc69d42b463a73 (diff)
patch 8.2.3551: checking first character of url twicev8.2.3551
Problem: Checking first character of url twice. Solution: Only check once. (closes #9026)
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc1.c b/src/misc1.c
index 62eba0206d..109b7bb0cf 100644
--- 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