summaryrefslogtreecommitdiff
path: root/shell.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-06-01 00:02:31 +0200
committerRichard Braun <rbraun@sceen.net>2017-06-01 00:02:31 +0200
commit8b0842af3ceca0ea4b25a471eb0a9ec384098939 (patch)
treed26634c10eb9f94890153daa21f73b22bc92a3b3 /shell.c
parent59a91b90800cad7268579d9e1e222710b45aa4cc (diff)
shell: add comment about line editing
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;