commit 1b960e1e565231ed1c2cd54f27744e53b6641dfc (tree)
parent 6f4266da7c35374be224c1194bf2e222421eab0c
Author: Tim Pope <code@tpope.net>
Date: Sat, 9 Jan 2010 23:20:30 -0500
Fix jump for "# Your branch ... 'localbranch'"
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
@@ -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