m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 15:53:39 -05:00

Do not immediately check --height option on Windows (#1082)

This commit is contained in:
Junegunn Choi
2017-10-15 19:02:05 +09:00
parent 438f6c96cd
commit 64a6ced62e

View File

@@ -833,9 +833,6 @@ func parseSize(str string, maxPercent float64, label string) sizeSpec {
} }
func parseHeight(str string) sizeSpec { func parseHeight(str string) sizeSpec {
if util.IsWindows() {
errorExit("--height options is currently not supported on Windows")
}
size := parseSize(str, 100, "height") size := parseSize(str, 100, "height")
return size return size
} }
@@ -1203,6 +1200,9 @@ func parseOptions(opts *Options, allArgs []string) {
} }
func postProcessOptions(opts *Options) { 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 // Default actions for CTRL-N / CTRL-P when --history is set
if opts.History != nil { if opts.History != nil {
if _, prs := opts.Keymap[tui.CtrlP]; !prs { if _, prs := opts.Keymap[tui.CtrlP]; !prs {