From 73d574b71a10d4661ada20275cafde75aff6c1ba Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 12 Sep 2024 13:33:18 +0200 Subject: teco_string_get_coord() returns character offsets now (refs #5) * This is used for error messages (TECO macro stackframes), so it's important to display columns in characters. * Program counters are in bytes and therefore everywhere gsize. This is by glib convention. --- src/undo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/undo.c') diff --git a/src/undo.c b/src/undo.c index dc54c7a..bc12107 100644 --- a/src/undo.c +++ b/src/undo.c @@ -112,7 +112,7 @@ teco_undo_push_size(teco_undo_action_t action_cb, gsize size) } void -teco_undo_pop(gint pc) +teco_undo_pop(gsize pc) { while ((gint)teco_undo_heads->len > pc) { teco_undo_token_t *top = -- cgit v1.2.3