diff --git a/man/man1/fzf.1 b/man/man1/fzf.1 index b605b59b..321327ab 100644 --- a/man/man1/fzf.1 +++ b/man/man1/fzf.1 @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. .. -.TH fzf 1 "Aug 2024" "fzf 0.55.0" "fzf - a command-line fuzzy finder" +.TH fzf 1 "Sep 2024" "fzf 0.56.0" "fzf - a command-line fuzzy finder" .SH NAME fzf - a command-line fuzzy finder @@ -756,7 +756,7 @@ default value 0 (or \fBcenter\fR) will put the label at the center of the border line. .TP -.BI "\-\-preview\-window=" "[POSITION][,SIZE[%]][,border\-BORDER_OPT][,[no]wrap][,[no]follow][,[no]cycle][,[no]hidden][,+SCROLL[OFFSETS][/DENOM]][,~HEADER_LINES][,default][, 0 || t.previewer.scrollable { maxWidth := t.pwindow.Width() - if !t.previewer.scrollable { + if !t.previewer.scrollable || !t.previewOpts.info { if maxWidth > 0 { t.pwindow.Move(0, maxWidth-1) t.pwindow.CPrint(tui.ColPreviewSpinner, spin) diff --git a/test/test_go.rb b/test/test_go.rb index ac294d62..1860ac1a 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -3378,6 +3378,15 @@ class TestGoFZF < TestBase assert_equal expected, result end end + + def test_preview_window_noinfo + # │ 1 ││ + tmux.send_keys %(#{FZF} --preview 'seq 1000' --preview-window top,noinfo --scrollbar), :Enter + tmux.until do |lines| + assert lines[1]&.start_with?('│ 1') + assert lines[1]&.end_with?(' ││') + end + end end module TestShell