fzf/test
Adam Quinn Snow eea2081857
Fix prompt overwrite with zero input and a one-line picker
An empty picker using adaptive height and inline info can be one row tall when
there is no input. Initialization emitted ESC[0A, which terminals interpret as
moving up one row, overwriting the preceding line.

Skip the cursor-up escape when no upward movement is needed.

Test is in test/test_layout.rb. Manual repro is easy with:

```
printf 'KEEP THIS LINE\n'; env FZF_DEFAULT_OPTS= FZF_DEFAULT_OPTS_FILE= \
    fzf --style=minimal --height='~50%' --info=inline-right </dev/null
```

Before the fix, KEEP THIS LINE disappears. Afterward, it remains above the picker.

Fix #4958
2026-11-19 22:58:49 +09:00
..
lib Pass bracketed paste actions through wait/track block 2026-07-05 11:22:02 +09:00
vim [vim] Open fzf in a tmux or Zellij floating pane by default (#4905) 2026-09-06 00:36:08 +09:00
runner.rb Split integration test file (#4205) 2025-01-25 19:57:40 +09:00
test_core.rb Fix --info inline-right:PREFIX not clearing previous output (#4954) 2026-11-12 10:51:45 +09:00
test_exec.rb Style change: thinner gutter column (#4521) 2025-09-16 21:22:56 +09:00
test_filter.rb Respect --no-sort in non-streaming filter mode 2026-10-21 15:05:38 +09:00
test_layout.rb Fix prompt overwrite with zero input and a one-line picker 2026-11-19 22:58:49 +09:00
test_preview.rb Fix data races on preview placeholders and merger.final 2026-11-07 20:37:20 +09:00
test_raw.rb Add 'best' action 2025-10-09 00:17:00 +09:00
test_server.rb Fix stale progress in --listen status payload (#4907) 2026-09-06 19:36:40 +09:00
test_shell_integration.rb [nushell] Quote paths inserted by CTRL-T (#4919) 2026-09-11 21:46:03 +09:00
test_tmux.rb Separate floating pane border label from pane title 2026-07-29 20:59:52 +09:00