diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2021-09-16 09:54:56 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2021-09-29 20:17:44 +0900 |
commit | 4173e94c6f260a64888928eead9aab8fd0bb1f97 (patch) | |
tree | 1cc5da5e15c3eae112031a35fcd2514a78381f41 | |
parent | 261d3d3340a9afa9925ec693a47ebe632d6870cb (diff) |
Do not check for --height support on --version
https://github.com/junegunn/fzf.vim/issues/1329
-rw-r--r-- | plugin/fzf.vim | 2 | ||||
-rw-r--r-- | 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 |