Skip to content
Myr

Restore previous behavior

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 3fc0bd2 · Browse files · 2 files+10 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+10 added−0 removed

  • tests:+7 added−0 removed
  • other:+3 added−0 removed

2 files+10 added−0 removed

modified:src/terminal.go+3 added
1693 unmodified lines
1694 t.window = t.tui.NewWindow(1695 marginInt[0], marginInt[3], width-pwidth, height, false, noBorder)1696 // NOTE: fzf --preview 'cat {}' --preview-window border-left --border1697 x := marginInt[3] + width - pwidth1698 if !previewOpts.border.HasRight() && t.borderShape.HasRight() {1699 pwidth++1700 }1701 createPreviewWindow(marginInt[0], x, pwidth, height)1702 }1703 }1704 }
3574 unmodified lines
modified:test/test_go.rb+7 added
3079 unmodified lines
3080 assert_equal ['╭────╮', '│ 10 │', '│ 0 │', '│ 10 │', '│ 1 │'], lines.take(5).map(&:strip)3081 end3082 end30833084 def test_preview_window_width_exception3085 tmux.send_keys "seq 10 | #{FZF} --scrollbar --preview-window border-left --border --preview 'seq 1000'", :Enter3086 tmux.until do |lines|3087 assert lines[1]&.end_with?(' 1/1000││')3088 end3089 end30903091 def test_become3092 tmux.send_keys "seq 100 | #{FZF} --bind 'enter:become:seq {} | #{FZF}'", :Enter3093 tmux.until { |lines| assert_equal 100, lines.item_count }3094 tmux.send_keys 999
890 unmodified lines