mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-25 00:21:58 +00:00
don't use _p9k__{ruler,empty_line}_idx in p10k display
This commit is contained in:
parent
b6df93d250
commit
5262ddc07e
2 changed files with 2 additions and 4 deletions
|
@ -70,8 +70,6 @@ function p10k-on-pre-prompt() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
${_p9k__'$_p9k_line_index'r-'$right'}
|
|
||||||
|
|
||||||
function p10k-on-post-prompt() {
|
function p10k-on-post-prompt() {
|
||||||
p10k display line1=hide right=hide segment:time=show
|
p10k display line1=hide right=hide segment:time=show
|
||||||
}
|
}
|
||||||
|
|
|
@ -5647,8 +5647,8 @@ function p10k() {
|
||||||
_p9k__display_v[k+1]=$new
|
_p9k__display_v[k+1]=$new
|
||||||
local name=$_p9k__display_v[k]
|
local name=$_p9k__display_v[k]
|
||||||
if [[ $name == (empty_line|ruler) ]]; then
|
if [[ $name == (empty_line|ruler) ]]; then
|
||||||
[[ $new == show ]] && local v=v2=_p9k_${name}_idx || local v=3
|
local var=_p9k__${name}_i
|
||||||
typeset -gi _p9k__${name}_i=$v
|
[[ $new == show ]] && unset $var || typeset -gi $var=3
|
||||||
elif [[ $name == (#b)(<->)([[:IDENT:]/]#) ]]; then
|
elif [[ $name == (#b)(<->)([[:IDENT:]/]#) ]]; then
|
||||||
local var=_p9k__${match[1]}${${${${match[2]//\/}/#left/l}/#right/r}/#gap/g}
|
local var=_p9k__${match[1]}${${${${match[2]//\/}/#left/l}/#right/r}/#gap/g}
|
||||||
[[ $new == hide ]] && typeset -g $var= || unset $var
|
[[ $new == hide ]] && typeset -g $var= || unset $var
|
||||||
|
|
Loading…
Reference in a new issue