summaryrefslogtreecommitdiff
path: root/src/findfile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-09-18 13:06:41 +0100
committerBram Moolenaar <Bram@vim.org>2022-09-18 13:06:41 +0100
commit747f110420a0b0f4c2e40e00e8456f1e45b6f0de (patch)
tree0d72c76dc650a6f4767a219ca22285b1be2950c8 /src/findfile.c
parent9712ff1288f942736ed76c0dec014909f067eec9 (diff)
downloadvim-git-747f110420a0b0f4c2e40e00e8456f1e45b6f0de.tar.gz
patch 9.0.0498: various small issuesv9.0.0498
Problem: Various small issues. Solution: Various small fixes.
Diffstat (limited to 'src/findfile.c')
-rw-r--r--src/findfile.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/findfile.c b/src/findfile.c
index c3089274b..5751a0727 100644
--- a/src/findfile.c
+++ b/src/findfile.c
@@ -1931,12 +1931,13 @@ file_name_in_line(
*/
len = 0;
while (vim_isfilec(ptr[len]) || (ptr[len] == '\\' && ptr[len + 1] == ' ')
- || ((options & FNAME_HYP) && path_is_url(ptr + len))
- || (is_url && vim_strchr((char_u *)":?&=", ptr[len]) != NULL))
+ || ((options & FNAME_HYP) && path_is_url(ptr + len))
+ || (is_url && vim_strchr((char_u *)":?&=", ptr[len]) != NULL))
{
- // After type:// we also include :, ?, & and = as valid characters, so that
- // http://google.com:8080?q=this&that=ok works.
- if ((ptr[len] >= 'A' && ptr[len] <= 'Z') || (ptr[len] >= 'a' && ptr[len] <= 'z'))
+ // After type:// we also include :, ?, & and = as valid characters, so
+ // that http://google.com:8080?q=this&that=ok works.
+ if ((ptr[len] >= 'A' && ptr[len] <= 'Z')
+ || (ptr[len] >= 'a' && ptr[len] <= 'z'))
{
if (in_type && path_is_url(ptr + len + 1))
is_url = TRUE;