From 7d5985baf927cdd04070679cbfbb5ff6b0728f6d Mon Sep 17 00:00:00 2001 From: Michael Kelley Date: Mon, 4 Feb 2019 22:51:39 -0800 Subject: Make height option work under Windows (#1341) Separate Unix & Windows code into platform specific files for light renderer --- src/options.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/options.go') diff --git a/src/options.go b/src/options.go index b87e85c2..0fd97050 100644 --- a/src/options.go +++ b/src/options.go @@ -11,7 +11,6 @@ import ( "github.com/junegunn/fzf/src/algo" "github.com/junegunn/fzf/src/tui" - "github.com/junegunn/fzf/src/util" "github.com/mattn/go-runewidth" "github.com/mattn/go-shellwords" @@ -1412,8 +1411,8 @@ func validateSign(sign string, signOptName string) error { } func postProcessOptions(opts *Options) { - if util.IsWindows() && opts.Height.size > 0 { - errorExit("--height option is currently not supported on Windows") + if !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 if opts.History != nil { -- cgit v1.2.3