mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-22 04:10:07 +00:00
enable bracketed paste when printing instant prompt
This commit is contained in:
parent
dce00cdb5d
commit
a55955c5cf
1 changed files with 2 additions and 2 deletions
|
@ -5933,7 +5933,7 @@ _p9k_set_instant_prompt() {
|
||||||
[[ -n $RPROMPT ]] || unset RPROMPT
|
[[ -n $RPROMPT ]] || unset RPROMPT
|
||||||
}
|
}
|
||||||
|
|
||||||
typeset -gri __p9k_instant_prompt_version=44
|
typeset -gri __p9k_instant_prompt_version=45
|
||||||
|
|
||||||
_p9k_dump_instant_prompt() {
|
_p9k_dump_instant_prompt() {
|
||||||
local user=${(%):-%n}
|
local user=${(%):-%n}
|
||||||
|
@ -6236,7 +6236,7 @@ _p9k_dump_instant_prompt() {
|
||||||
fi
|
fi
|
||||||
typeset -g __p9k_instant_prompt_output=${TMPDIR:-/tmp}/p10k-instant-prompt-output-${(%):-%n}-$$
|
typeset -g __p9k_instant_prompt_output=${TMPDIR:-/tmp}/p10k-instant-prompt-output-${(%):-%n}-$$
|
||||||
{ echo -n > $__p9k_instant_prompt_output } || return
|
{ echo -n > $__p9k_instant_prompt_output } || return
|
||||||
print -rn -- "$out" || return
|
print -rn -- "${out}${esc}?2004h" || return
|
||||||
if (( $+commands[stty] )); then
|
if (( $+commands[stty] )); then
|
||||||
command stty -icanon 2>/dev/null
|
command stty -icanon 2>/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue