diff options
| author | Randy Palamar <randy@rnpnr.xyz> | 2025-12-10 21:10:32 -0700 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2025-12-22 09:17:08 -0700 |
| commit | fbc898a9cd132078b0128b70091f4aadbec519e3 (patch) | |
| tree | f9baba3f32348fcf6d6d9debd760c67e58981735 /text.c | |
| parent | dd29e2f4321bea25c53af5def7a23fe57640de50 (diff) | |
| download | vis-fbc898a9cd132078b0128b70091f4aadbec519e3.tar.gz vis-fbc898a9cd132078b0128b70091f4aadbec519e3.tar.xz | |
text: make text_snapshot return void
No one was checking this and there is not an error case for this
function.
Diffstat (limited to 'text.c')
| -rw-r--r-- | text.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; } |
