mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
fix KEY_UP
This commit is contained in:
parent
872fefd11a
commit
cf09b8e507
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user