diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-11-05 16:08:46 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-11-05 16:08:46 +0300 |
commit | b1450284e97377845a74632f5e0c8a1a2245a78d (patch) | |
tree | 3238ab88a623a5d40b9a31a717fbd393e5ba5af0 /internal/p10k.zsh | |
parent | 8231995ed55640d994eeb97f79b1dae363fedda1 (diff) |
bug fix (incorrect height in instant prompt); embed LF in the line overflow workaround
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 243ab560..62d51d22 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -3704,7 +3704,7 @@ _p9k_dump_instant_prompt() { (( __p9k_ksh_arrays )) && >&$fd print -r -- ' unsetopt ksh_arrays' (( __p9k_sh_glob )) && >&$fd print -r -- ' unsetopt sh_glob' >&$fd print -r -- ' - : ${__p9k_used_instant_prompt[1]//$lf/$((++height))} + (( height += ${#${__p9k_used_instant_prompt[1]//[^$lf]}} )) local _p9k_ret function _p9k_prompt_length() { local COLUMNS=1024 @@ -5085,7 +5085,7 @@ _p9k_init_display() { _p9k_init_prompt() { _p9k_t=($'\n' '' '') - _p9k_prompt_overflow_bug && _p9k_t[2]='%{%G%}' + _p9k_prompt_overflow_bug && _p9k_t[2]=$'%{%G\n%}' _p9k_init_lines |