mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Add comments
This commit is contained in:
@@ -222,9 +222,11 @@ function! gitgutter#quickfix(current_file)
|
||||
let lnum = 0
|
||||
for line in diff
|
||||
if line =~ '^diff --git [^"]'
|
||||
" No quotation mark therefore no spaces in filenames
|
||||
let [fnamel, fnamer] = split(line)[2:3]
|
||||
let fname = fnamel ==# fnamer ? fnamer : fnamer[2:]
|
||||
elseif line =~ '^diff --git "'
|
||||
" Quotation mark therefore do not split on space
|
||||
let [_, fnamel, _, fnamer] = split(line, '"')
|
||||
let fname = fnamel ==# fnamer ? fnamer : fnamer[2:]
|
||||
elseif line =~ '^diff --cc [^"]'
|
||||
|
||||
Reference in New Issue
Block a user