diff options
Diffstat (limited to 'src/options.go')
-rw-r--r-- | src/options.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/options.go b/src/options.go index 699e8a55..a916e806 100644 --- a/src/options.go +++ b/src/options.go @@ -995,7 +995,7 @@ func parsePreviewWindow(opts *previewOpts, input string) { tokens := strings.Split(input, ":") sizeRegex := regexp.MustCompile("^[1-9][0-9]*%?$") - offsetRegex := regexp.MustCompile("^\\+([0-9]+|{-?[0-9]+})(-[0-9]+)?$") + offsetRegex := regexp.MustCompile("^\\+([0-9]+|{-?[0-9]+})(-[0-9]+|-/[1-9][0-9]*)?$") for _, token := range tokens { switch token { case "": |