diff options
Diffstat (limited to 'src/edbox.c')
| -rw-r--r-- | src/edbox.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/edbox.c b/src/edbox.c index 2bb1cef..b043233 100644 --- a/src/edbox.c +++ b/src/edbox.c @@ -272,11 +272,15 @@ void edbox_keystroke(void) { show_cursor(); } -void edbox_space(void) { - edit_box[edbox_len++] = ' '; +void edbox_addchr(char c) { + edit_box[edbox_len++] = c; edbox_pos = edbox_len; } +void edbox_space(void) { + edbox_addchr(' '); +} + void edbox_set(char *contents) { edbox_clear(); while(*contents) { |
