aboutsummaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-28 11:11:07 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-28 11:11:07 +0200
commitddf8647a5393e049f514a39764aebd8893ce00b9 (patch)
tree0539941bd5ce776f89af000e8579ae833b90f8c5 /text.h
parentd954d51a4ce4d6fa13e9312fb72afa0f666a3378 (diff)
downloadvis-ddf8647a5393e049f514a39764aebd8893ce00b9.tar.gz
vis-ddf8647a5393e049f514a39764aebd8893ce00b9.tar.xz
Make '.' repeat last insertion
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 773e8b6..52a5fad 100644
--- a/text.h
+++ b/text.h
@@ -45,6 +45,8 @@ void text_snapshot(Text*);
size_t text_undo(Text*);
size_t text_redo(Text*);
+size_t text_last_insertion(Text*, const char **content);
+
size_t text_pos_by_lineno(Text*, size_t lineno);
size_t text_lineno_by_pos(Text*, size_t pos);