From 2add45fe2f0b0860eba007948c1cfe734c56192c Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 15 Apr 2015 22:32:45 +0900 Subject: [vim] Rename g:fzf_tmux_height to g:fzf_height Because tmux panes are not used on Neovim. --- plugin/fzf.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin') diff --git a/plugin/fzf.vim b/plugin/fzf.vim index f08e0177..063bc2e6 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -21,7 +21,7 @@ " OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION " WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -let s:default_tmux_height = '40%' +let s:default_height = '40%' let s:launcher = 'xterm -e bash -ic %s' let s:fzf_go = expand(':h:h').'/bin/fzf' let s:fzf_rb = expand(':h:h').'/fzf' @@ -330,7 +330,7 @@ function! s:cmd(bang, ...) abort let opts.dir = remove(args, -1) endif if !a:bang - let opts.down = get(g:, 'fzf_tmux_height', s:default_tmux_height) + let opts.down = get(g:, 'fzf_height', get(g:, 'fzf_tmux_height', s:default_height)) endif call fzf#run(extend({'options': join(args), 'sink*': function('cmd_callback')}, opts)) endfunction -- cgit v1.2.3