mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-03 17:03:53 +08:00
Fix jump for "# Your branch ... 'localbranch'"
This commit is contained in:
1 parent
6f4266da7c
commit
1b960e1e56
1 file changed
+1
-1
+1
-1
@@ -1304,7 +1304,7 @@ function! s:GF(mode) abort
|
||||
let file = 'refs/heads/'.getline('.')[12:]
|
||||
return s:Edit(a:mode,file)
|
||||
elseif getline('.') =~# "^# Your branch .*'"
|
||||
let file = 'refs/remotes/'.matchstr(getline('.'),"'\\zs\\S\\+\\ze'")
|
||||
let file = matchstr(getline('.'),"'\\zs\\S\\+\\ze'")
|
||||
return s:Edit(a:mode,file)
|
||||
endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user