aboutsummaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-08-08 10:40:59 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-08-08 10:40:59 +0200
commit36abe5af5738381f21f556ce26a1e80bd5eacfe0 (patch)
tree82ceb1e1d1ff832314065fde3bb8f287410acaf4 /text.h
parent2425c1614f51c1c3641ccd2c99f3e751c8ceb421 (diff)
downloadvis-36abe5af5738381f21f556ce26a1e80bd5eacfe0.tar.gz
vis-36abe5af5738381f21f556ce26a1e80bd5eacfe0.tar.xz
text: introduce helper function text_delete_range
Diffstat (limited to 'text.h')
-rw-r--r--text.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/text.h b/text.h
index 217c801..7d7f19d 100644
--- a/text.h
+++ b/text.h
@@ -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