mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-13 22:03:47 -05:00
:hidden property of previous --preview-window should be cleared
Fix #636. Patch suggested by @edi9999.
This commit is contained in:
@@ -724,6 +724,7 @@ func parseSize(str string, maxPercent float64, label string) sizeSpec {
|
||||
|
||||
func parsePreviewWindow(opts *previewOpts, input string) {
|
||||
layout := input
|
||||
opts.hidden = false
|
||||
if strings.HasSuffix(layout, ":hidden") {
|
||||
opts.hidden = true
|
||||
layout = strings.TrimSuffix(layout, ":hidden")
|
||||
|
||||
Reference in New Issue
Block a user