aboutsummaryrefslogtreecommitdiff
path: root/editor.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-13 22:35:26 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-13 22:35:26 +0200
commit9da490af05b2aac772f0bdbb934dd313c1271749 (patch)
treec21aa06e029e6d725baed9283e44990d22e38d72 /editor.c
parentc17ca10e11db30f4b4924b69dbf3b1693025d4dc (diff)
downloadvis-9da490af05b2aac772f0bdbb934dd313c1271749.tar.gz
vis-9da490af05b2aac772f0bdbb934dd313c1271749.tar.xz
Rename text_insert_raw to text_insert
Diffstat (limited to 'editor.c')
-rw-r--r--editor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor.c b/editor.c
index 7ca69f1..9d520d8 100644
--- a/editor.c
+++ b/editor.c
@@ -412,7 +412,7 @@ void editor_delete_key(Editor *ed) {
}
void editor_insert(Editor *ed, size_t pos, const char *c, size_t len) {
- text_insert_raw(ed->win->text, pos, c, len);
+ text_insert(ed->win->text, pos, c, len);
editor_windows_invalidate(ed, pos, pos + len);
}
@@ -512,7 +512,7 @@ void editor_prompt_hide(Editor *ed) {
void editor_prompt_set(Editor *ed, const char *line) {
Text *text = ed->prompt->win->text;
editor_prompt_clear(ed->prompt);
- text_insert_raw(text, 0, line, strlen(line));
+ text_insert(text, 0, line, strlen(line));
editor_window_draw(ed->prompt->win);
}