Skip to content
Myr

Fix offset-middle not updating the list

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 de0f2ef · Browse files · 2 files+11 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+11 added−0 removed

  • tests:+10 added−0 removed
  • other:+1 added−0 removed

2 files+11 added−0 removed

modified:src/terminal.go+1 added
5484 unmodified lines
5485 soff := t.scrollOff5486 t.scrollOff = t.window.Height()5487 t.constrain()5488 t.scrollOff = soff5489 req(reqList)5490 case actJump:5491 t.jumping = jumpEnabled5492 req(reqJump)5493 case actJumpAccept:
829 unmodified lines
modified:test/test_core.rb+10 added
1844 unmodified lines
1845 tmux.until do |lines|1846 assert_includes lines, 'X Type in query ... Y100/100'1847 end1848 end18491850 def test_offset_middle1851 tmux.send_keys %(seq 1000 | #{FZF} --sync --no-input --reverse --height 5 --scroll-off 0 --bind space:offset-middle), :Enter1852 line = nil1853 tmux.until { |lines| line = lines.index('> 1') }1854 tmux.send_keys :PgDn1855 tmux.until { |lines| assert_includes lines[line + 4], "> 5" }1856 tmux.send_keys :Space1857 tmux.until { |lines| assert_includes lines[line + 2], "> 5" }1858 end1859end