aboutsummaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2020-10-01 20:46:27 +0200
committerMarc André Tanner <mat@brain-dump.org>2020-10-10 10:03:17 +0200
commit5f1ade1308a080fc27f43ae9504432255958a6f9 (patch)
tree9a10b1d16a6f8159ac26284254b8e80e1fb8d71c /text.h
parent54614939ff8e65d0831a8b64e575c03215a183aa (diff)
downloadvis-5f1ade1308a080fc27f43ae9504432255958a6f9.tar.gz
vis-5f1ade1308a080fc27f43ae9504432255958a6f9.tar.xz
text: make text_snapshot return whether it succeeded
Currently this can't fail, but one can imagine implementations which do.
Diffstat (limited to 'text.h')
-rw-r--r--text.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/text.h b/text.h
index f5a6993..6027e62 100644
--- a/text.h
+++ b/text.h
@@ -166,7 +166,7 @@ bool text_appendf(Text*, const char *format, ...) __attribute__((format(printf,
/**
* Create a text snapshot, that is a vertice in the history graph.
*/
-void text_snapshot(Text*);
+bool text_snapshot(Text*);
/**
* Revert to previous snapshot along the main branch.
* @rst