aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2021-06-04 16:02:36 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2021-06-04 16:02:36 +0300
commitb9c62ca02827c828fb544033950232e5426930ad (patch)
treee2627be3c044c1f6d9e5970f0515d5d93980fc15
parentf217e4a39a284f6db7be7a4cfde8647085f97865 (diff)
cleanup
-rw-r--r--internal/p10k.zsh6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index ea0f25ff..4dabb40e 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -301,7 +301,7 @@ function _p9k_upglob() {
# _p9k_prompt_length $'%{a\b%Gb%}' => 1
function _p9k_prompt_length() {
local -i COLUMNS=1024
- local -i x y=$#1 m
+ local -i x y=${#1} m
if (( y )); then
while (( ${${(%):-$1%$y(l.1.0)}[-1]} )); do
x=y
@@ -5886,7 +5886,7 @@ _p9k_set_instant_prompt() {
[[ -n $RPROMPT ]] || unset RPROMPT
}
-typeset -gri __p9k_instant_prompt_version=38
+typeset -gri __p9k_instant_prompt_version=39
_p9k_dump_instant_prompt() {
local user=${(%):-%n}
@@ -6135,7 +6135,7 @@ _p9k_dump_instant_prompt() {
local _p9k__ret
function _p9k_prompt_length() {
local -i COLUMNS=1024
- local -i x y=$#1 m
+ local -i x y=${#1} m
if (( y )); then
while (( ${${(%):-$1%$y(l.1.0)}[-1]} )); do
x=y