1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-22 04:10:07 +00:00
This commit is contained in:
Roman Perepelitsa 2021-06-04 15:02:36 +02:00
parent f217e4a39a
commit b9c62ca028

View file

@ -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