aboutsummaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-01-06 21:28:39 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-01-06 22:15:55 +0100
commitd3b3e218edcaa950477645a9add92c83cd0543b9 (patch)
tree0362222761e8770b241ba4d1ced8dd144bbcfaa9 /text.h
parent876b8f94649c9ec405375cf687b55a65e2e666ec (diff)
downloadvis-d3b3e218edcaa950477645a9add92c83cd0543b9.tar.gz
vis-d3b3e218edcaa950477645a9add92c83cd0543b9.tar.xz
Rudimentary change list (accessible via g; and g,)
Diffstat (limited to 'text.h')
-rw-r--r--text.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/text.h b/text.h
index 5156d84..faa340c 100644
--- a/text.h
+++ b/text.h
@@ -83,6 +83,9 @@ size_t text_mark_intern_get(Text*, MarkIntern);
void text_mark_intern_clear(Text*, MarkIntern);
void text_mark_intern_clear_all(Text*);
+/* get position of change denoted by index, where 0 indicates the most recent */
+size_t text_history_get(Text*, size_t index);
+
size_t text_size(Text*);
bool text_modified(Text*);
/* test whether the underlying file uses UNIX style \n or Windows style \r\n newlines */