mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
fix quickfix for combined diffs
The --cc option is issued for merge conflicts.
This commit is contained in:
@@ -205,6 +205,10 @@ function! gitgutter#quickfix(current_file)
|
||||
elseif line =~ '^diff --git "'
|
||||
let [_, fnamel, _, fnamer] = split(line, '"')
|
||||
let fname = fnamel ==# fnamer ? fnamel : fnamel[2:]
|
||||
elseif line =~ '^diff --cc [^"]'
|
||||
let fname = line[10:]
|
||||
elseif line =~ '^diff --cc "'
|
||||
let [_, fname] = split(line, '"')
|
||||
elseif line =~ '^@@'
|
||||
let lnum = matchlist(line, '+\(\d\+\)')[1]
|
||||
elseif lnum > 0
|
||||
|
||||
Reference in New Issue
Block a user