summaryrefslogtreecommitdiff
path: root/src/snapshot.c
diff options
context:
space:
mode:
authorBerke Güzel <wenekar1@gmail.com>2026-10-15 12:38:58 +0300
committerBerke Güzel <wenekar1@gmail.com>2026-10-15 12:38:58 +0300
commit22345caf457e8d9a4bdb56b696cc5f3694812276 (patch)
tree801bd4f17569fa875e81bc2297a46ecf5176cbc7 /src/snapshot.c
parent6ee9eb37d8e616a972fb29b3fbdbc33991aa844f (diff)
parent212f1cc9109aa0deb9e5d990bb2dba2b167618fb (diff)
Merge branch 'wt/namespace' into api-hardening
Diffstat (limited to 'src/snapshot.c')
-rw-r--r--src/snapshot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/snapshot.c b/src/snapshot.c
index c578f18..0bbf545 100644
--- a/src/snapshot.c
+++ b/src/snapshot.c
@@ -90,8 +90,8 @@ static void invalidate(struct term_snapshot *s)
static uint32_t arena_add(struct term_snapshot *s, const struct gstore *g, uint32_t handle,
bool *ok)
{
- uint32_t cps[GRAPHEME_MAX_LEN];
- int n = term_gstore_expand(g, handle, cps, GRAPHEME_MAX_LEN);
+ uint32_t cps[TERM_GRAPHEME_MAX_LEN];
+ int n = term_gstore_expand(g, handle, cps, TERM_GRAPHEME_MAX_LEN);
if (n <= 0)
return ' ';
if (s->arena_len + (uint32_t)n + 1 > s->arena_cap) {
@@ -124,7 +124,7 @@ static uint32_t convert_row(struct term_snapshot *s, const struct gstore *g,
uint32_t text = c->c;
if (TERM_EXPECT(text < 0x20, 0))
text = text ? ' ' : 0;
- else if (TERM_EXPECT(grapheme_is_handle(text), 0)) {
+ else if (TERM_EXPECT(term_grapheme_is_handle(text), 0)) {
text = arena_add(s, g, text, ok);
if (!*ok)
return 0;