mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Warn user when unable to list renamed files
This commit is contained in:
@@ -308,7 +308,12 @@ function! s:obtain_file_renames(bufnr, base)
|
||||
return {}
|
||||
endif
|
||||
for line in split(out, '\n')
|
||||
let [original, current] = split(line)[1:]
|
||||
let fields = split(line)
|
||||
if len(fields) != 3
|
||||
call gitgutter#utility#warn('gitgutter: unable to list renamed files: '.line)
|
||||
return {}
|
||||
endif
|
||||
let [original, current] = fields[1:]
|
||||
let renames[current] = original
|
||||
endfor
|
||||
return renames
|
||||
|
||||
Reference in New Issue
Block a user