From 8851b8fe643517af160f59dfc3d88a0c4eed1fa5 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 15 Dec 2015 21:19:33 -0500 Subject: [PATCH] Fix jump from diff to file This code hasn't been touched in 4 years; how did it break?! --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 76315c2..5785a54 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2850,7 +2850,7 @@ function! s:cfile() abort elseif getline('.') =~# '^[+-]' && search('^@@ -\d\+,\d\+ +\d\+,','bnW') let type = getline('.')[0] let lnum = line('.') - 1 - let offset = -1 + let offset = 0 while getline(lnum) !~# '^@@ -\d\+,\d\+ +\d\+,' if getline(lnum) =~# '^[ '.type.']' let offset += 1