Skip to content

Commit 0b73405

Browse files
alxbljedahan
authored andcommitted
fix: geometry_status - bad math expression when computing symbol color. Fixes #275
1 parent ae03c53 commit 0b73405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/geometry_status

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ geometry_status() {
1616
colors=(${GEOMETRY_STATUS_SYMBOL_COLOR_HASH_COLORS})
1717
fi
1818

19-
local sum=0; for c in ${(s::)^HOST}; do ((sum += "$(print -f '%d' "'$c")")); done
19+
local sum=0; for c in ${(s::)^HOST}; do ((sum += $(print -f '%d' "'$c"))); done
2020

2121
local index="$(($sum % ${#colors}))"
2222

0 commit comments

Comments
 (0)