Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 438f6c9 · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:src/options.go+3 added-3 removed
831 unmodified lines
832 return sizeSpec{val, percent}833}834835func parseHeight(str string) sizeSpec {836 if util.IsWindows() {837 errorExit("--height options is currently not supported on Windows")838 }836 size := parseSize(str, 100, "height")837 return size838}839
359 unmodified lines
1199 }1200}12011202func postProcessOptions(opts *Options) {1203 if util.IsWindows() && opts.Height.size > 0 {1204 errorExit("--height option is currently not supported on Windows")1205 }1206 // Default actions for CTRL-N / CTRL-P when --history is set1207 if opts.History != nil {1208 if _, prs := opts.Keymap[tui.CtrlP]; !prs {1209 opts.Keymap[tui.CtrlP] = toActions(actPreviousHistory)
46 unmodified lines