From e4d6a891f1887d0a8922677afe09a246fd69f7e1 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 1 Dec 2015 00:55:39 +0900 Subject: [PATCH] [[B]Lines] Fix #49 - Apply the new --tabstop option &tabstop is local to each buffer, so using the global &tabstop value can be considered to be a best-effort approach. Also added --reverse option as it fits better for Lines and BLines. --- autoload/fzf/vim.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index b624a0e..a38a4b9 100644 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -200,7 +200,7 @@ function! fzf#vim#lines(...) return s:fzf(fzf#vim#wrap({ \ 'source': fzf#vim#_lines(1), \ 'sink*': s:function('s:line_handler'), - \ 'options': '+m --tiebreak=index --prompt "Lines> " --ansi --extended --nth=3..' + \ 'options': '+m --tiebreak=index --prompt "Lines> " --ansi --extended --nth=3.. --reverse --tabstop='.&tabstop \}), a:000) endfunction @@ -229,7 +229,7 @@ function! fzf#vim#buffer_lines(...) return s:fzf(fzf#vim#wrap({ \ 'source': s:buffer_lines(), \ 'sink*': s:function('s:buffer_line_handler'), - \ 'options': '+m --tiebreak=index --prompt "BLines> " --ansi --extended --nth=2..' + \ 'options': '+m --tiebreak=index --prompt "BLines> " --ansi --extended --nth=2.. --reverse --tabstop='.&tabstop \}), a:000) endfunction