Skip to content
Myr

Allow negative field index in preview-window scroll offset

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 0f9cb55 · 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
993 unmodified lines
994 opts.wrap = false995996 tokens := strings.Split(input, ":")997 sizeRegex := regexp.MustCompile("^[0-9]+%?$")998 offsetRegex := regexp.MustCompile("^\\+([0-9]+|{[0-9]+})(-[0-9]+)?$")998 offsetRegex := regexp.MustCompile("^\\+([0-9]+|{-?[0-9]+})(-[0-9]+)?$")999 for _, token := range tokens {1000 switch token {1001 case "":1002 case "hidden":
485 unmodified lines