summaryrefslogtreecommitdiff
path: root/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell.c')
-rw-r--r--shell.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/shell.c b/shell.c
index 84c1823..472ad67 100644
--- a/shell.c
+++ b/shell.c
@@ -821,6 +821,10 @@ shell_process_raw_char(char c)
goto out;
}
+ /*
+ * This assumes that the backspace character only moves the cursor
+ * without erasing characters.
+ */
printf("%s", shell_line_str(current_line) + shell_cursor - 1);
remaining_chars = shell_line_size(current_line) - shell_cursor;