diff options
author | Richard Braun <rbraun@sceen.net> | 2017-06-01 00:02:31 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-06-01 00:02:31 +0200 |
commit | 8b0842af3ceca0ea4b25a471eb0a9ec384098939 (patch) | |
tree | d26634c10eb9f94890153daa21f73b22bc92a3b3 /shell.c | |
parent | 59a91b90800cad7268579d9e1e222710b45aa4cc (diff) |
shell: add comment about line editing
Diffstat (limited to 'shell.c')
-rw-r--r-- | shell.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |