diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-11-03 14:19:22 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-11-03 14:19:22 +0300 |
commit | 5262ddc07ee1ad38a1141addd343f794bd4d8295 (patch) | |
tree | 6e2191e7e0bbd8237af2e62ae359fb255b601fd0 | |
parent | b6df93d2507c165490565fb055ff2c772f811a99 (diff) |
don't use _p9k__{ruler,empty_line}_idx in p10k display
-rw-r--r-- | dynamic.txt | 2 | ||||
-rw-r--r-- | internal/p10k.zsh | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/dynamic.txt b/dynamic.txt index 4807ddf6..6bc75b40 100644 --- a/dynamic.txt +++ b/dynamic.txt @@ -70,8 +70,6 @@ function p10k-on-pre-prompt() { fi } -${_p9k__'$_p9k_line_index'r-'$right'} - function p10k-on-post-prompt() { p10k display line1=hide right=hide segment:time=show } diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 85baa6d6..cea58d28 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -5647,8 +5647,8 @@ function p10k() { _p9k__display_v[k+1]=$new local name=$_p9k__display_v[k] if [[ $name == (empty_line|ruler) ]]; then - [[ $new == show ]] && local v=v2=_p9k_${name}_idx || local v=3 - typeset -gi _p9k__${name}_i=$v + local var=_p9k__${name}_i + [[ $new == show ]] && unset $var || typeset -gi $var=3 elif [[ $name == (#b)(<->)([[:IDENT:]/]#) ]]; then local var=_p9k__${match[1]}${${${${match[2]//\/}/#left/l}/#right/r}/#gap/g} [[ $new == hide ]] && typeset -g $var= || unset $var |