diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-08-08 10:40:59 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-08-08 10:40:59 +0200 |
| commit | 36abe5af5738381f21f556ce26a1e80bd5eacfe0 (patch) | |
| tree | 82ceb1e1d1ff832314065fde3bb8f287410acaf4 /text.h | |
| parent | 2425c1614f51c1c3641ccd2c99f3e751c8ceb421 (diff) | |
| download | vis-36abe5af5738381f21f556ce26a1e80bd5eacfe0.tar.gz vis-36abe5af5738381f21f556ce26a1e80bd5eacfe0.tar.xz | |
text: introduce helper function text_delete_range
Diffstat (limited to 'text.h')
| -rw-r--r-- | text.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -41,6 +41,7 @@ struct stat text_stat(Text*); bool text_insert(Text*, size_t pos, const char *data, size_t len); /* delete `len' bytes starting from `pos' */ bool text_delete(Text*, size_t pos, size_t len); +bool text_delete_range(Text*, Filerange*); /* mark the current text state, such that it can be {un,re}done */ void text_snapshot(Text*); /* undo/redo to the last snapshotted state. returns the position where |
