Skip to content
Myr

Disallow preview-window size of zero

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 e2ae1b2 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/options.go+1 added-1 removed
992 unmodified lines
993 opts.hidden = false994 opts.wrap = false995996 tokens := strings.Split(input, ":")997 sizeRegex := regexp.MustCompile("^[0-9]+%?$")997 sizeRegex := regexp.MustCompile("^[1-9][0-9]*%?$")998 offsetRegex := regexp.MustCompile("^\\+([0-9]+|{-?[0-9]+})(-[0-9]+)?$")999 for _, token := range tokens {1000 switch token {1001 case "":
486 unmodified lines