From fbc898a9cd132078b0128b70091f4aadbec519e3 Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Wed, 10 Dec 2025 21:10:32 -0700 Subject: text: make text_snapshot return void No one was checking this and there is not an error case for this function. --- text.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'text.c') diff --git a/text.c b/text.c index b6ea518..9725f1e 100644 --- a/text.c +++ b/text.c @@ -745,12 +745,11 @@ bool text_delete_range(Text *txt, const Filerange *r) { /* preserve the current text content such that it can be restored by * means of undo/redo operations */ -bool text_snapshot(Text *txt) { +void text_snapshot(Text *txt) { if (txt->current_revision) txt->last_revision = txt->current_revision; txt->current_revision = NULL; txt->cache = NULL; - return true; } -- cgit v1.2.3