mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
92053449d4
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.vim`s 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. closes: #19379 Signed-off-by: thinca <thinca@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>