Skip to content

gF fails when &isf contains spec characters #9

@justinmk

Description

@justinmk

Using the default vim-fetch settings, gF on foo.py:46: in the following text fails for me (Vim 7.4.618):

foo.py:46:      if(not Directory.Exists(destinationDir)):
foo.py:49:      if(File.Exists(filePath)):
foo.py:54:      if not Directory.Exists(self.PATH_TO_FILES):

Error:

Error detected while processing function fetch#cfile:
line   26:
E447: Can't find file "foo.py:46" in path

Yet :edit foo.py:46 does work.

But :edit foo.py:46: (with colon at the end) fails. These also fail:

call fetch#cfile(0)
call fetch#cfile(1)
call fetch#cfile(2)
call fetch#cfile(3)
call fetch#cfile(4)

If I unmap gF so that the default Vim gF is used, it also fails with the same error. I'm guessing this is the problem, but since :edit foo.py:46 works, why can't fetch#cfile() work also, instead of using Vim's broken thing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugos:windowsIssues specific to (or particularly relevant to) the Windows platform.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions