From 60fe132d6c59d54021091af8e5aa09fcd4704562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 30 Jun 2015 11:13:17 +0200 Subject: Cleanup insert/replace mode input handling View should only display the file content, but not modify it. --- editor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'editor.h') diff --git a/editor.h b/editor.h index d985755..3fd130a 100644 --- a/editor.h +++ b/editor.h @@ -257,12 +257,12 @@ void editor_suspend(Editor*); /* these function operate on the currently focused window but make sure * that all windows which show the affected region are redrawn too. */ -void editor_insert_key(Editor*, const char *c, size_t len); -void editor_replace_key(Editor*, const char *c, size_t len); +void editor_insert_key(Editor*, const char *data, size_t len); +void editor_replace_key(Editor*, const char *data, size_t len); void editor_backspace_key(Editor*); -void editor_delete_key(Editor*); void editor_insert(Editor*, size_t pos, const char *data, size_t len); void editor_delete(Editor*, size_t pos, size_t len); +void editor_replace(Editor*, size_t pos, const char *data, size_t len); /* set tabwidth (must be in range [1, 8], affects all windows */ void editor_tabwidth_set(Editor*, int tabwidth); -- cgit v1.2.3