From 49e0df31289956aa3fd627f851f8fb2b3e08aa13 Mon Sep 17 00:00:00 2001 From: eunhhu Date: Wed, 30 Sep 2026 16:33:21 +0100 Subject: Show an i64 with every digit on every surface vega_text reads an i64 view or column as an integer and prints all of its digits, so an ID past 2^53 shows as it is on the CLI, the TUI, speech and the web surface, where a number would round. --- surfaces/vega.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'surfaces/vega.h') diff --git a/surfaces/vega.h b/surfaces/vega.h index c172d31..a800835 100644 --- a/surfaces/vega.h +++ b/surfaces/vega.h @@ -59,8 +59,9 @@ long vega_timers_run(VegaTimers *, PureApp *, double clock, bool *ticked); * returns how many there were. */ unsigned vega_check(const PureModule *, void (*report)(void *, const char *name, const char *message), void *context); -/* A view (row ignored) or a column at a row as text; numbers in Pure's - * shortest form. false when it has no value (for example a missing item). */ +/* A view (row ignored) or a column at a row as text: numbers in Pure's + * shortest form, bools as true or false, i64s with every digit. false when + * it has no value (for example a missing item). */ bool vega_text(PureApp *, uint32_t view, size_t row, char out[VEGA_TEXT], size_t *length); bool vega_number(PureApp *, uint32_t view, size_t row, double *out); size_t vega_rows(PureApp *, const VegaPart *); -- cgit v1.2.3