From 7460b4382cd9e22651c5fb252471d403cef07aee Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 15 Dec 2016 10:31:25 +0900 Subject: [PATCH] [GFiles?] Apply --tiebreak=index for status code filtering --- 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 cd158b9..dd0b024 100644 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -475,7 +475,7 @@ function! fzf#vim#gitfiles(args, ...) let wrapped = fzf#wrap({ \ 'source': 'git -c color.status=always status --short --untracked-files=all', \ 'dir': root, - \ 'options': '--ansi --multi --nth 2..,.. --prompt "GitFiles?> " --preview ''sh -c "(git diff --color=always -- {-1} | sed 1,4d; cat {-1}) | head -500"''' + \ 'options': '--ansi --multi --nth 2..,.. --tiebreak=index --prompt "GitFiles?> " --preview ''sh -c "(git diff --color=always -- {-1} | sed 1,4d; cat {-1}) | head -500"''' \}) call s:remove_layout(wrapped) let wrapped.common_sink = remove(wrapped, 'sink*')