Fix jump from diff to file

This code hasn't been touched in 4 years; how did it break?!
This commit is contained in:
Tim Pope 2015-12-15 21:19:33 -05:00
parent cfa485ede7
commit 8851b8fe64

View File

@ -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