From 901c32c045fe67cd67117d1f526d63600ea545a9 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 12 Oct 2016 03:00:16 +0200 Subject: [PATCH] Fix GitFiles? for deleted files (#218) This uses `--` to separate the file name. --- autoload/fzf/vim.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index f334b99..3966fbe 100644 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -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*')