From 64a6ced62e626895bc0d47cb124c4a56678a1273 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 15 Oct 2017 19:02:05 +0900 Subject: [PATCH] Do not immediately check --height option on Windows (#1082) --- src/options.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/options.go b/src/options.go index e2f33f8..00b2afd 100644 --- a/src/options.go +++ b/src/options.go @@ -833,9 +833,6 @@ func parseSize(str string, maxPercent float64, label string) sizeSpec { } func parseHeight(str string) sizeSpec { - if util.IsWindows() { - errorExit("--height options is currently not supported on Windows") - } size := parseSize(str, 100, "height") return size } @@ -1203,6 +1200,9 @@ func parseOptions(opts *Options, allArgs []string) { } func postProcessOptions(opts *Options) { + if util.IsWindows() && opts.Height.size > 0 { + errorExit("--height option is currently not supported on Windows") + } // Default actions for CTRL-N / CTRL-P when --history is set if opts.History != nil { if _, prs := opts.Keymap[tui.CtrlP]; !prs {