aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-06-19 14:13:59 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-06-19 14:13:59 +0300
commit5f40c44940edc5278cbe089e42bfeaff1acedb72 (patch)
tree57892ba7a0fe20b487628c1511c320654e0004e3 /internal
parentd40734d68785f3caf090321108ff68ff9c70115e (diff)
don't hook zle-line-finish if transient_prompt is not set
Diffstat (limited to 'internal')
-rwxr-xr-xinternal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 3dbb0e7f..4366628d 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -2599,7 +2599,7 @@ _p9k_init() {
_P9K_LEFT_PREFIX+="$_P9K_RETVAL%f%b%k"
_p9k_get_icon MULTILINE_LAST_PROMPT_PREFIX
_P9K_LEFT_SUFFIX+=$'\n'$_P9K_RETVAL
- if [[ $POWERLEVEL9K_RPROMPT_ON_NEWLINE != true ]]; then
+ if [[ $POWERLEVEL9K_RPROMPT_ON_NEWLINE != true && -o TRANSIENT_RPROMPT ]]; then
if is-at-least 5.3; then
function _p9k_zle_line_finish() {
[[ -o TRANSIENT_RPROMPT ]] || return