Skip to content

Commit 8dc1e82

Browse files
committed
Avoid error on modeline for missing usage data
1 parent c4fb9be commit 8dc1e82

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

eca-chat.el

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,9 @@ the prompt/context line."
929929
"Format N as `x.yM` for |N| >= 1M, `x.yK` for |N| >= 1K.
930930
Otherwise show plain integer."
931931
(cond
932+
((not n)
933+
"")
934+
932935
((>= (abs n) 1000000)
933936
(let* ((m (/ (abs n) 1000000.0))
934937
(s (format "%.1f" m))

0 commit comments

Comments
 (0)