aboutsummaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'text.c')
-rw-r--r--text.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/text.c b/text.c
index 4f1f28e..7cdfd03 100644
--- a/text.c
+++ b/text.c
@@ -491,7 +491,7 @@ static void change_free(Change *c) {
* | | |short| | existing text | | |
* \-+ <-- +-----+ <-- +---------------+ <-- +-/
*/
-bool text_insert_raw(Text *txt, size_t pos, const char *data, size_t len) {
+bool text_insert(Text *txt, size_t pos, const char *data, size_t len) {
if (pos > txt->size)
return false;
if (pos < txt->lines.pos)
@@ -544,10 +544,6 @@ bool text_insert_raw(Text *txt, size_t pos, const char *data, size_t len) {
return true;
}
-bool text_insert(Text *txt, size_t pos, const char *data) {
- return text_insert_raw(txt, pos, data, strlen(data));
-}
-
size_t text_undo(Text *txt) {
size_t pos = -1;
/* taking a snapshot makes sure that txt->current_action is reset */