From 2fa5480b0c12993f4e5424e7455db91574569def Mon Sep 17 00:00:00 2001 From: romkatv Date: Thu, 14 Nov 2019 10:02:09 +0100 Subject: [PATCH] move iterm mark above ruler and empty_line; otherwise transient prompt is broken and Select Output of Last Command includes more than it should --- internal/p10k.zsh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index aa9417c2..36c28cb6 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -5214,6 +5214,11 @@ _p9k_init_prompt() { _p9k_prompt_prefix_left+='${${_p9k_ind::=${${ZLE_RPROMPT_INDENT:-1}/#-*/0}}+}' fi + if [[ $ITERM_SHELL_INTEGRATION_INSTALLED == Yes ]]; then + _p9k_prompt_prefix_left+=$'%{\e]133;A\a%}' + _p9k_prompt_suffix_left+=$'%{\e]133;B\a%}' + fi + if (( _POWERLEVEL9K_PROMPT_ADD_NEWLINE_COUNT > 0 )); then _p9k_t+=${(pl.$_POWERLEVEL9K_PROMPT_ADD_NEWLINE_COUNT..\n.)} else @@ -5255,11 +5260,6 @@ _p9k_init_prompt() { _p9k_prompt_prefix_left+='${(e)_p9k_t[${_p9k__ruler_i:-'$#_p9k_t'}]}' fi - if [[ $ITERM_SHELL_INTEGRATION_INSTALLED == Yes ]]; then - _p9k_prompt_prefix_left+=$'%{\e]133;A\a%}' - _p9k_prompt_suffix_left+=$'%{\e]133;B\a%}' - fi - ( _p9k_segment_in_use time && (( _POWERLEVEL9K_TIME_UPDATE_ON_COMMAND )) ) _p9k_reset_on_line_finish=$((!$?))