diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-06-30 11:13:17 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-06-30 11:13:17 +0200 |
| commit | 60fe132d6c59d54021091af8e5aa09fcd4704562 (patch) | |
| tree | 506249a4ebd7a09c0e2433c2a920c8c89a1ca4a8 /editor.h | |
| parent | 82a10e051c593e133554ce9675169fd68bb02ad7 (diff) | |
| download | vis-60fe132d6c59d54021091af8e5aa09fcd4704562.tar.gz vis-60fe132d6c59d54021091af8e5aa09fcd4704562.tar.xz | |
Cleanup insert/replace mode input handling
View should only display the file content, but not modify it.
Diffstat (limited to 'editor.h')
| -rw-r--r-- | editor.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |
