Fix GitFiles? for deleted files (#218)

This uses `--` to separate the file name.
This commit is contained in:
Daniel Hahler 2016-10-12 03:00:16 +02:00 committed by Junegunn Choi
parent 61eb53199c
commit 901c32c045

View file

@ -422,7 +422,7 @@ function! fzf#vim#gitfiles(args, ...)
let wrapped = fzf#wrap({
\ 'source': 'git -c color.status=always status --short',
\ 'dir': root,
\ 'options': '--ansi --multi --nth 2..,.. --prompt "GitFiles?> " --preview ''(git diff --color=always {-1} | sed 1,4d; cat {-1}) | head -500'''
\ 'options': '--ansi --multi --nth 2..,.. --prompt "GitFiles?> " --preview ''(git diff --color=always -- {-1} | sed 1,4d; cat {-1}) | head -500'''
\})
call s:remove_layout(wrapped)
let wrapped.common_sink = remove(wrapped, 'sink*')