diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2020-10-06 18:44:13 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-10-06 18:44:13 +0900 |
commit | bafb99d52024488372ecd21b029286019e71d170 (patch) | |
tree | 1d1734b38e77a883accc455a41d5092c9b765854 | |
parent | 3cc8a74a91e90c2f53704f53b1d8793799542259 (diff) |
Allow splitting preview-window options
e.g. --preview-window sharp --preview-window cycle
-rw-r--r-- | src/options.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/options.go b/src/options.go index de4e5913..dc253675 100644 --- a/src/options.go +++ b/src/options.go @@ -994,13 +994,6 @@ func parseInfoStyle(str string) infoStyle { } func parsePreviewWindow(opts *previewOpts, input string) { - // Default - opts.position = posRight - opts.size = sizeSpec{50, true} - opts.hidden = false - opts.wrap = false - opts.cycle = false - tokens := strings.Split(input, ":") sizeRegex := regexp.MustCompile("^[0-9]+%?$") offsetRegex := regexp.MustCompile("^\\+([0-9]+|{-?[0-9]+})(-[0-9]+|-/[1-9][0-9]*)?$") |