diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-11-14 12:02:09 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-11-14 12:02:09 +0300 |
commit | 2fa5480b0c12993f4e5424e7455db91574569def (patch) | |
tree | f6d187c3bbad25b6c0c68246c9bba1db5c8363d8 /internal/p10k.zsh | |
parent | 1dee8902abb7632278c984d28d1b2a78dd4ea4a8 (diff) |
move iterm mark above ruler and empty_line; otherwise transient prompt is broken and Select Output of Last Command includes more than it should
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 10 |
1 files 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=$((!$?)) |