diff options
| author | Michael Kelley <michael.a.kelley@gmail.com> | 2019-02-04 22:51:39 -0800 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-03-10 00:03:34 +0900 |
| commit | 7d5985baf927cdd04070679cbfbb5ff6b0728f6d (patch) | |
| tree | 5b67c8ac90f2a040832c1d17b1ed10746f1d6b36 /src/options.go | |
| parent | 7c40a424c0bf5a8967816d51ead6a71a334f30bb (diff) | |
| download | fzf-7d5985baf927cdd04070679cbfbb5ff6b0728f6d.tar.gz | |
Make height option work under Windows (#1341)
Separate Unix & Windows code into platform specific files for light renderer
Diffstat (limited to 'src/options.go')
| -rw-r--r-- | src/options.go | 5 |
1 files changed, 2 insertions, 3 deletions
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 { |
