Have ctrl_l clear the current prompt line so it is not saved in the scrollback
This commit is contained in:
parent
4a039a45ec
commit
d4f9d22c92
1 changed files with 1 additions and 1 deletions
|
|
@ -4033,7 +4033,7 @@
|
|||
.. code-block:: zsh
|
||||
|
||||
ctrl_l() {
|
||||
builtin print -rn -- $'\e[H\e[22J' > "$TTY"
|
||||
builtin print -rn -- $'\r\e[0J\e[H\e[22J' >"$TTY"
|
||||
builtin zle .reset-prompt
|
||||
builtin zle -R
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue