aboutsummaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
authorRyan Chipman <rchipman@mit.edu>2015-06-24 09:31:39 -0400
committerMarc André Tanner <mat@brain-dump.org>2015-06-27 10:11:12 +0200
commit404cc487a8f817fb3b5da1366aa4b78e05fab3ae (patch)
tree2bdbb6dcd11a5d998738016a5c68f7c29ad1baeb /text.h
parentbe8b95ddcbd5fa72f87465f27089c859e140b3b9 (diff)
downloadvis-404cc487a8f817fb3b5da1366aa4b78e05fab3ae.tar.gz
vis-404cc487a8f817fb3b5da1366aa4b78e05fab3ae.tar.xz
Core undo tree changes
Diffstat (limited to 'text.h')
-rw-r--r--text.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/text.h b/text.h
index 099cbe4..f5091c5 100644
--- a/text.h
+++ b/text.h
@@ -49,6 +49,8 @@ void text_snapshot(Text*);
* the change occured or EPOS if nothing could be undo/redo. */
size_t text_undo(Text*);
size_t text_redo(Text*);
+size_t text_earlier(Text*);
+size_t text_later(Text*);
size_t text_pos_by_lineno(Text*, size_t lineno);
size_t text_lineno_by_pos(Text*, size_t pos);