From d9752a4c21ba8a98e26dcf2199f22581d3946dfa Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 9 Oct 2020 19:53:51 +0900 Subject: Reset preview window flags that are not style-related Fix #2203 --- src/options.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/options.go') diff --git a/src/options.go b/src/options.go index 35220bae..c7354b35 100644 --- a/src/options.go +++ b/src/options.go @@ -994,6 +994,10 @@ func parseInfoStyle(str string) infoStyle { } func parsePreviewWindow(opts *previewOpts, input string) { + // We should reset flags that are not style-related. + opts.hidden = false + opts.scroll = "" + tokens := strings.Split(input, ":") sizeRegex := regexp.MustCompile("^[0-9]+%?$") offsetRegex := regexp.MustCompile("^\\+([0-9]+|{-?[0-9]+})(-[0-9]+|-/[1-9][0-9]*)?$") -- cgit v1.2.3