diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2020-08-23 17:12:37 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-08-23 17:12:37 +0900 |
| commit | 43798fc2e801f4c5e6b9c3d048fb09eb8c7b6401 (patch) | |
| tree | c02456bf986e836063ffadc8d26788494e065a89 /src/options.go | |
| parent | 9dc4b40d7a185b0448a15f2e2c6f7c46be738550 (diff) | |
| download | fzf-43798fc2e801f4c5e6b9c3d048fb09eb8c7b6401.tar.gz | |
Revert 1ab4289: Preview window of size 0 is allowed
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 38558771..a99ab0b6 100644 --- a/src/options.go +++ b/src/options.go @@ -995,7 +995,7 @@ func parsePreviewWindow(opts *previewOpts, input string) { opts.wrap = false tokens := strings.Split(input, ":") - sizeRegex := regexp.MustCompile("^[1-9][0-9]*%?$") + sizeRegex := regexp.MustCompile("^[0-9]+%?$") offsetRegex := regexp.MustCompile("^\\+([0-9]+|{-?[0-9]+})(-[0-9]+|-/[1-9][0-9]*)?$") for _, token := range tokens { switch token { |
