File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -279,6 +279,9 @@ int readline_process_char(int c) {
279
279
redraw_step_back = rl .cursor_pos - rl .orig_line_len ;
280
280
redraw_from_cursor = true;
281
281
redraw_step_forward = rl .line -> len - rl .orig_line_len ;
282
+ // We need to trigger a line erase because we don't know if the new line is longer
283
+ // when taking continuation characters into account
284
+ last_line_len = rl .line -> len + 1 ;
282
285
}
283
286
} else if (c == 'B' ) {
284
287
#if MICROPY_REPL_EMACS_KEYS
@@ -299,6 +302,9 @@ int readline_process_char(int c) {
299
302
redraw_step_back = rl .cursor_pos - rl .orig_line_len ;
300
303
redraw_from_cursor = true;
301
304
redraw_step_forward = rl .line -> len - rl .orig_line_len ;
305
+ // We need to trigger a line erase because we don't know if the new line is longer
306
+ // when taking continuation characters into account
307
+ last_line_len = rl .line -> len + 1 ;
302
308
}
303
309
} else if (c == 'C' ) {
304
310
#if MICROPY_REPL_EMACS_KEYS
You can’t perform that action at this time.
0 commit comments