mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
04c9134275
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 |
||
---|---|---|
.. | ||
checks | ||
pexpects | ||
test_functions | ||
.gitignore | ||
filter-control-sequences.sh | ||
history_sample_bash | ||
history_sample_corrupt1 | ||
history_sample_fish_1_x | ||
history_sample_fish_2_0 | ||
interactive.config | ||
interactive.fish | ||
test.fish | ||
test_driver.sh | ||
test_env.sh | ||
test_util.fish |