mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-15 20:23:50 -07:00
@@ -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]*)?$")
|
||||
|
Reference in New Issue
Block a user