diff options
Diffstat (limited to 'text.c')
| -rw-r--r-- | text.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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 */ |
