diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-10-20 23:17:37 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-10-20 23:17:37 +0300 |
commit | 2a0c31f0eb0b33889768d117156ee16b07ca0b5f (patch) | |
tree | 8e641a4f6d1d41259af66c72359a077e7e43a3a4 | |
parent | 7a2bd8ffa8cb677e704660b2e69218688ac99819 (diff) |
call `/bin/stty size` to obtain correct COLUMNS
-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 3e1c0091..97410aba 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -3490,7 +3490,7 @@ _p9k_set_instant_prompt() { RPROMPT=$saved_rprompt } -typeset -gri __p9k_instant_prompt_version=5 +typeset -gri __p9k_instant_prompt_version=6 _p9k_dump_instant_prompt() { local user=${(%):-%n} @@ -3536,7 +3536,7 @@ _p9k_dump_instant_prompt() { local -a _p9k_t=("${(@ps:$us:)${tail%%$rs*}}")' (( __p9k_ksh_arrays )) && >&$fd print -r -- ' setopt ksh_arrays' (( __p9k_sh_glob )) && >&$fd print -r -- ' setopt sh_glob' - >&$fd print -r -- ' /bin/true + >&$fd print -r -- ' [[ -x /bin/stty ]] && /bin/stty size >/dev/null typeset -ga __p9k_used_instant_prompt=("${(@e)_p9k_t[-3,-1]}")' (( __p9k_ksh_arrays )) && >&$fd print -r -- ' unsetopt ksh_arrays' (( __p9k_sh_glob )) && >&$fd print -r -- ' unsetopt sh_glob' |