diff options
-rw-r--r-- | shell/shell_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/shell_common.c b/shell/shell_common.c index 9092a8e2b..e50a79b78 100644 --- a/shell/shell_common.c +++ b/shell/shell_common.c | |||
@@ -248,6 +248,7 @@ shell_builtin_read(struct builtin_read_params *params) | |||
248 | else if (key == '\b') { | 248 | else if (key == '\b') { |
249 | if (bufpos > 0) { | 249 | if (bufpos > 0) { |
250 | --bufpos; | 250 | --bufpos; |
251 | ++nchars; | ||
251 | if (!(read_flags & BUILTIN_READ_SILENT)) { | 252 | if (!(read_flags & BUILTIN_READ_SILENT)) { |
252 | printf("\b \b"); | 253 | printf("\b \b"); |
253 | } | 254 | } |