diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-08-13 21:37:48 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-08-13 21:37:48 +0200 |
| commit | ef876ce4eaf3ef5f8e406205b2d797efccea293f (patch) | |
| tree | 26fe37795f7591b7ede70dd1bc11f1a8c1c2e119 /editor.h | |
| parent | bf08e4e2b69a391e72edc57735a5095af621f92c (diff) | |
| download | vis-ef876ce4eaf3ef5f8e406205b2d797efccea293f.tar.gz vis-ef876ce4eaf3ef5f8e406205b2d797efccea293f.tar.xz | |
Add support for file marks
Diffstat (limited to 'editor.h')
| -rw-r--r-- | editor.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |
