summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-10-15 19:02:05 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-10-15 19:02:05 +0900
commit64a6ced62e626895bc0d47cb124c4a56678a1273 (patch)
tree3b8b923bc91c1cd84a838e10154c30253bdfd50e
parent438f6c96cdc56e1bb3cc12daa16ae08b2ccae18b (diff)
Do not immediately check --height option on Windows (#1082)
-rw-r--r--src/options.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/options.go b/src/options.go
index e2f33f81..00b2afd2 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 {