aboutsummaryrefslogtreecommitdiff
path: root/src/edbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/edbox.c')
-rw-r--r--src/edbox.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/edbox.c b/src/edbox.c
index 5d529d3..2bb1cef 100644
--- a/src/edbox.c
+++ b/src/edbox.c
@@ -272,6 +272,11 @@ void edbox_keystroke(void) {
show_cursor();
}
+void edbox_space(void) {
+ edit_box[edbox_len++] = ' ';
+ edbox_pos = edbox_len;
+}
+
void edbox_set(char *contents) {
edbox_clear();
while(*contents) {