mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-11 00:00:06 +00:00
move iterm mark above ruler and empty_line; otherwise transient prompt is broken and Select Output of Last Command includes more than it should
This commit is contained in:
parent
1dee8902ab
commit
2fa5480b0c
1 changed files with 5 additions and 5 deletions
|
@ -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=$((!$?))
|
||||
|
||||
|
|
Loading…
Reference in a new issue