mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 13:08:49 +00:00
fix clear screen invocation
It's necessary to use a subcommand to eat the newline that `string replace` appends to the string.
This commit is contained in:
parent
cbea0b9378
commit
813415302a
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ function __fish_shared_key_bindings -d "Bindings shared between emacs and vi mod
|
|||
bind $argv \ew 'set tok (commandline -pt); if test $tok[1]; echo; whatis $tok[1]; commandline -f repaint; end'
|
||||
# ncurses > 6.0 sends a "delete scrollback" sequence along with clear.
|
||||
# This string replace removes it.
|
||||
bind $argv \cl 'clear | string replace \e\[3J ""; commandline -f repaint'
|
||||
bind $argv \cl 'echo -n (clear | string replace \e\[3J ""); commandline -f repaint'
|
||||
bind $argv \cc __fish_cancel_commandline
|
||||
bind $argv \cu backward-kill-line
|
||||
bind $argv \cw backward-kill-path-component
|
||||
|
|
Loading…
Reference in a new issue