mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 12:53:52 -05:00
Fix jump for "# Your branch ... 'localbranch'"
This commit is contained in:
@@ -1304,7 +1304,7 @@ function! s:GF(mode) abort
|
|||||||
let file = 'refs/heads/'.getline('.')[12:]
|
let file = 'refs/heads/'.getline('.')[12:]
|
||||||
return s:Edit(a:mode,file)
|
return s:Edit(a:mode,file)
|
||||||
elseif getline('.') =~# "^# Your branch .*'"
|
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)
|
return s:Edit(a:mode,file)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user