From bc9399226d156e1bcbdf379adaa73eaf6bc4508a Mon Sep 17 00:00:00 2001 From: gremat <50012463+gremat@users.noreply.github.com> Date: Fri, 2 Aug 2024 10:04:40 +0200 Subject: [PATCH] debug: fix double substitution for paths in goto_file from stacktrace window When the content of the stacktrace window is computed in s:show_stacktrace(), s:substituteRemotePath() is already used to map remote paths to local paths. goto_file() is intended to jump to the desired location in the source code which resides on the local machine. Thus it should use the _local_ path and not translate the path back to the remote version. --- autoload/go/debug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/go/debug.vim b/autoload/go/debug.vim index 523f4b36e9..bb96bdb9a5 100644 --- a/autoload/go/debug.vim +++ b/autoload/go/debug.vim @@ -362,7 +362,7 @@ function! s:goto_file() abort return endif call win_gotoid(win_getid(bufs[0][0])) - let filename = s:substituteLocalPath(m[1]) + let filename = m[1] let linenr = m[2] let oldfile = fnamemodify(expand('%'), ':p:gs!\\!/!') if oldfile != filename