[GFiles?] Apply --tiebreak=index for status code filtering

This commit is contained in:
Junegunn Choi
2016-12-15 10:31:25 +09:00
parent 3d7dfc7068
commit 7460b4382c

View File

@@ -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*')