aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-08-13 21:37:48 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-08-13 21:37:48 +0200
commitef876ce4eaf3ef5f8e406205b2d797efccea293f (patch)
tree26fe37795f7591b7ede70dd1bc11f1a8c1c2e119 /editor.h
parentbf08e4e2b69a391e72edc57735a5095af621f92c (diff)
downloadvis-ef876ce4eaf3ef5f8e406205b2d797efccea293f.tar.gz
vis-ef876ce4eaf3ef5f8e406205b2d797efccea293f.tar.xz
Add support for file marks
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/editor.h b/editor.h
index 71829b3..c10577d 100644
--- a/editor.h
+++ b/editor.h
@@ -44,6 +44,12 @@ bool editor_iterator_byte_prev(Iterator*, char *b);
bool editor_iterator_char_next(Iterator *it, char *c);
bool editor_iterator_char_prev(Iterator *it, char *c);
+typedef int Mark;
+void editor_mark_set(Editor*, Mark, size_t pos);
+size_t editor_mark_get(Editor*, Mark);
+void editor_mark_clear(Editor*, Mark);
+void editor_mark_clear_all(Editor*);
+
size_t editor_size(Editor*);
bool editor_modified(Editor*);
int editor_save(Editor*, const char *file);