Skip to content

Commit

Permalink
Do not immediately check --height option on Windows (junegunn#1082)
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed Oct 15, 2017
1 parent 438f6c9 commit 64a6ced
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 64a6ced

Please sign in to comment.