fix KEY_UP

This commit is contained in:
lyon 2023-05-01 18:40:34 +08:00
parent 872fefd11a
commit cf09b8e507

View File

@ -1474,6 +1474,11 @@ enum shellCTRL _inner_do_obj_runChar(PikaObj* self,
if (NULL == prev) {
goto __exit;
}
/* move to the last position */
for (int i = 0; i < shell->line_position - shell->line_curpos;
i++) {
_putc_cmd(PIKA_KEY_RIGHT, 1);
}
/* clear the current line */
for (int i = 0; i < shell->line_position; i++) {
PIKA_BACKSPACE();