mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-25 00:21:58 +00:00
workaround for a bug in tilix: $COLUMNS is incorrect in the new shell immediately after splitting; it becomes correct after forking
This commit is contained in:
parent
bb7b755c25
commit
7a2bd8ffa8
1 changed files with 3 additions and 2 deletions
|
@ -3490,7 +3490,7 @@ _p9k_set_instant_prompt() {
|
||||||
RPROMPT=$saved_rprompt
|
RPROMPT=$saved_rprompt
|
||||||
}
|
}
|
||||||
|
|
||||||
typeset -gri __p9k_instant_prompt_version=4
|
typeset -gri __p9k_instant_prompt_version=5
|
||||||
|
|
||||||
_p9k_dump_instant_prompt() {
|
_p9k_dump_instant_prompt() {
|
||||||
local user=${(%):-%n}
|
local user=${(%):-%n}
|
||||||
|
@ -3536,7 +3536,8 @@ _p9k_dump_instant_prompt() {
|
||||||
local -a _p9k_t=("${(@ps:$us:)${tail%%$rs*}}")'
|
local -a _p9k_t=("${(@ps:$us:)${tail%%$rs*}}")'
|
||||||
(( __p9k_ksh_arrays )) && >&$fd print -r -- ' setopt ksh_arrays'
|
(( __p9k_ksh_arrays )) && >&$fd print -r -- ' setopt ksh_arrays'
|
||||||
(( __p9k_sh_glob )) && >&$fd print -r -- ' setopt sh_glob'
|
(( __p9k_sh_glob )) && >&$fd print -r -- ' setopt sh_glob'
|
||||||
>&$fd print -r -- ' typeset -ga __p9k_used_instant_prompt=("${(@e)_p9k_t[-3,-1]}")'
|
>&$fd print -r -- ' /bin/true
|
||||||
|
typeset -ga __p9k_used_instant_prompt=("${(@e)_p9k_t[-3,-1]}")'
|
||||||
(( __p9k_ksh_arrays )) && >&$fd print -r -- ' unsetopt ksh_arrays'
|
(( __p9k_ksh_arrays )) && >&$fd print -r -- ' unsetopt ksh_arrays'
|
||||||
(( __p9k_sh_glob )) && >&$fd print -r -- ' unsetopt sh_glob'
|
(( __p9k_sh_glob )) && >&$fd print -r -- ' unsetopt sh_glob'
|
||||||
>&$fd print -r -- '
|
>&$fd print -r -- '
|
||||||
|
|
Loading…
Reference in a new issue