mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-22 10:11:13 -03:00
Commit 7acc2b7 added an empty line to our screen representation if we are
wrapped. This regressed the fix for #6826. In the attached test case, there is
a spurious empty line after the first one. Adjust the fix to remove it again.
Patch-by: kerty <g.kabakov@inbox.ru>
https://github.com/fish-shell/fish-shell/pull/11153#issuecomment-2800087389
18 lines
567 B
Fish
18 lines
567 B
Fish
#RUN: %fish %s
|
|
#REQUIRES: command -v tmux
|
|
|
|
set -g isolated_tmux_fish_extra_args -C '
|
|
function fish_prompt; echo \'$ \'; end
|
|
bind ctrl-g "commandline -i \'echo \'(printf %0(math \$COLUMNS - (string length \'\$ echo \'))d 0)"
|
|
'
|
|
isolated-tmux-start
|
|
|
|
isolated-tmux send-keys C-g Enter
|
|
tmux-sleep
|
|
isolated-tmux capture-pane -p | awk 'NR <= 4 {print NR ":" $0}'
|
|
|
|
# CHECK: 1:$ echo 0000000000000000000000000000000000000000000000000000000000000000000000000
|
|
# CHECK: 2:0000000000000000000000000000000000000000000000000000000000000000000000000
|
|
# CHECK: 3:$
|
|
# CHECK: 4:
|