m/fzf
1
0
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:
Junegunn Choi
2016-08-12 01:16:59 +09:00
parent 7cef92fffe
commit 1e74dbb937
2 changed files with 36 additions and 7 deletions

View File

@@ -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")