diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2020-08-21 11:49:01 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-08-21 11:49:01 +0900 |
| commit | 1ab4289ad64a60a88c44dcfe7d032c5d028df6bf (patch) | |
| tree | 1e727f07974c877b0e7919942f8dc1cdbd64eba9 /src | |
| parent | e2ae1b249cf2d5258b552cfd682c7c0911981e9b (diff) | |
| download | fzf-1ab4289ad64a60a88c44dcfe7d032c5d028df6bf.tar.gz | |
Disallow preview-window size of zero
Diffstat (limited to 'src')
| -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 3692f0c3..699e8a55 100644 --- a/src/options.go +++ b/src/options.go @@ -994,7 +994,7 @@ func parsePreviewWindow(opts *previewOpts, input string) { opts.wrap = false tokens := strings.Split(input, ":") - sizeRegex := regexp.MustCompile("^[0-9]+%?$") + sizeRegex := regexp.MustCompile("^[1-9][0-9]*%?$") offsetRegex := regexp.MustCompile("^\\+([0-9]+|{-?[0-9]+})(-[0-9]+)?$") for _, token := range tokens { switch token { |
