Skip to content
Myr

Do not check for --height support on --version

Before adoption: this commit came in with the history the project adopted, so no landing records it.

https://github.com/junegunn/fzf.vim/issues/1329

authored by Junegunn Choi · committed by Junegunn Choi · parent 261d3d3 · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • https: //github.com/junegunn/fzf.vim/issues/1329

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:plugin/fzf.vim+1 added-1 removed
157 unmodified lines
158function s:get_version(bin)159 if has_key(s:versions, a:bin)160 return s:versions[a:bin]161 end162 let command = a:bin . ' --version'162 let command = a:bin . ' --version --no-height'163 let output = systemlist(command)164 if v:shell_error || empty(output)165 return ''166 endif
881 unmodified lines
modified:src/options.go+1 added-1 removed
1590 unmodified lines
1591 return nil1592}15931594func postProcessOptions(opts *Options) {1595 if !tui.IsLightRendererSupported() && opts.Height.size > 0 {1595 if !opts.Version && !tui.IsLightRendererSupported() && opts.Height.size > 0 {1596 errorExit("--height option is currently not supported on this platform")1597 }1598 // Default actions for CTRL-N / CTRL-P when --history is set1599 if opts.History != nil {
67 unmodified lines