diff --git a/runtime/autoload/vimgoto.vim b/runtime/autoload/vimgoto.vim index 121af4ef32..421732ce89 100644 --- a/runtime/autoload/vimgoto.vim +++ b/runtime/autoload/vimgoto.vim @@ -4,7 +4,7 @@ vim9script # Contributers: @lacygoill # Shane-XB-Qian # Andrew Radev -# Last Change: 2025 Sep 02 +# Last Change: 2025 Sep 21 # # Vim Script to handle jumping to the targets of several types of Vim commands # (:import, :packadd, :runtime, :colorscheme), and to autoloaded functions of @@ -16,17 +16,17 @@ vim9script export def Find(editcmd: string) #{{{2 var curline: string = getline('.') - if curline =~ '^\s*\%(:\s*\)\=packadd!\=\s' + if curline =~ '^\s*\%(:\s*\)\=\%(sil\%[ent]!\=\s\+\)\=packadd!\=\s' HandlePackaddLine(editcmd, curline) return endif - if curline =~ '^\s*\%(:\s*\)\=ru\%[ntime]!\=' + if curline =~ '^\s*\%(:\s*\)\=\%(sil\%[ent]!\=\s\+\)\=ru\%[ntime]!\=' HandleRuntimeLine(editcmd, curline, expand('')) return endif - if curline =~ '^\s*\%(:\s*\)\=colo\%[rscheme]\s' + if curline =~ '^\s*\%(:\s*\)\=\%(sil\%[ent]!\=\s\+\)\=colo\%[rscheme]\s' HandleColoLine(editcmd, curline) return endif