fish-shell/tests
Johannes Altmanninger 04c9134275
Some checks are pending
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run
Limit command line rendering to $LINES lines
Render the command line buffer only until the last line we can fit
on the screen.

If the cursor pushes the viewport such that neither the prompt nor
the first line of the command line buffer are visible, then we are
"scrolled". In this case we need to make sure to erase any leftover
prompt, so add a hack to disable the "shared_prefix" optimization
that tries to minimize redraws.

Down-arrow scrolls down only when on the last line, and up-arrow always
scrolls up as much as possible.  This is somewhat unconventional;
probably we should change the up-arrow behavior but I guess it's a
good idea to show the prompt whenever possible.  In future we could
solve that in a different way: we could keep the prompt visible even
if we're scrolled. This would work well because at least the left
prompt lives in a different column from the command line buffer.
However this assumption breaks when the first line in the command
line buffer is soft-wrapped, so keep this approach for now.

Note that we're still broken when complete-and-search or history-pager
try to draw a pager on top of an overfull screen.  Will try to fix
this later.

Closes #7296
2024-10-25 17:35:42 +02:00
..
checks Limit command line rendering to $LINES lines 2024-10-25 17:35:42 +02:00
pexpects complete: Sort --keep-order completions smaller 2024-10-05 13:53:02 +02:00
test_functions isolated-tmux: fix quoting error 2023-09-14 20:42:25 +02:00
.gitignore tweak gitignore rules for *tests* directory 2017-02-20 20:29:43 -08:00
filter-control-sequences.sh tests: filter control sequences only when interactive 2024-04-12 12:28:22 +02:00
history_sample_bash Support $(cmd) command substitution as alternative to (cmd) 2021-07-13 21:33:42 +02:00
history_sample_corrupt1 Improve history robustness against corrupt files 2014-07-29 14:42:03 -07:00
history_sample_fish_1_x Enforce that history items must end with trailing newlines 2021-05-10 14:23:07 -07:00
history_sample_fish_2_0 Enforce that history items must end with trailing newlines 2021-05-10 14:23:07 -07:00
interactive.config Remove some unused functions from the test harness 2020-11-15 09:17:23 +01:00
interactive.fish Only retry failed pexpect tests under CI 2022-10-25 13:40:21 -05:00
test_driver.sh tests: Remove skipped tests hack for Cmake < 3.9.0 2024-06-11 16:55:11 +02:00
test_env.sh test_env: remove stale env sanitization 2024-10-21 12:56:55 +02:00
test_util.fish Run each test fully independently in own environment 2021-08-29 08:56:12 +02:00
test.fish tests: filter control sequences only when interactive 2024-04-12 12:28:22 +02:00