[[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.
This commit is contained in:
Junegunn Choi 2015-12-01 00:55:39 +09:00
parent f2a97a388b
commit e4d6a891f1

View file

@ -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