From 4173e94c6f260a64888928eead9aab8fd0bb1f97 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 16 Sep 2021 09:54:56 +0900 Subject: [PATCH] Do not check for --height support on --version https://github.com/junegunn/fzf.vim/issues/1329 --- plugin/fzf.vim | 2 +- src/options.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index d8295df2..4190e0e3 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -159,7 +159,7 @@ function s:get_version(bin) if has_key(s:versions, a:bin) return s:versions[a:bin] end - let command = a:bin . ' --version' + let command = a:bin . ' --version --no-height' let output = systemlist(command) if v:shell_error || empty(output) return '' diff --git a/src/options.go b/src/options.go index e215beef..385eabc2 100644 --- a/src/options.go +++ b/src/options.go @@ -1592,7 +1592,7 @@ func validateSign(sign string, signOptName string) error { } func postProcessOptions(opts *Options) { - if !tui.IsLightRendererSupported() && opts.Height.size > 0 { + if !opts.Version && !tui.IsLightRendererSupported() && opts.Height.size > 0 { errorExit("--height option is currently not supported on this platform") } // Default actions for CTRL-N / CTRL-P when --history is set