Problem: gf in Vim script fails if multiple target files exist.
Solution: Use globpath() which returns an array.
In a Vim script, gf on some#func() will jump to autoload/some.vim. In this case, if there are multiple autoload/foo.vims in 'runtimepath', globpath(&runtimepath, path) will return multiple paths, separated by newlines.
As a result, the second and subsequent paths will be executed as commands in autoload/vimgoto.vim:195, causing an error. This change fixes this issue by making the result of globpath() an array.
https://github.com/vim/vim/pull/19379
(1 file)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
thanks
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
at one time we should add tests for this plugin, oh well
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()