aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--text.c3
-rw-r--r--text.h2
2 files changed, 2 insertions, 3 deletions
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;
}
diff --git a/text.h b/text.h
index 4ff8bdb..7017b24 100644
--- a/text.h
+++ b/text.h
@@ -159,7 +159,7 @@ VIS_INTERNAL bool text_appendf(Text *txt, const char *format, ...) __attribute__
/**
* Create a text snapshot, that is a vertex in the history graph.
*/
-VIS_INTERNAL bool text_snapshot(Text*);
+VIS_INTERNAL void text_snapshot(Text*);
/**
* Revert to previous snapshot along the main branch.
* @rst