From ddd3d4fad96b8ff4682af2a0d2218544527de2ee Mon Sep 17 00:00:00 2001 From: Lyon Date: Sat, 12 Aug 2023 22:53:55 +0800 Subject: [PATCH] clean the REPL check for '\b' --- src/PikaObj.c | 2 +- src/PikaVersion.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PikaObj.c b/src/PikaObj.c index 6d3e63bb0..feae0c1db 100644 --- a/src/PikaObj.c +++ b/src/PikaObj.c @@ -1668,7 +1668,7 @@ enum shellCTRL _inner_do_obj_runChar(PikaObj* self, goto __exit; } } - if ((inputChar == '\b') || (inputChar == 127)) { + if (inputChar == '\b') { if (shell->line_curpos == 0) { #if __linux printf("\b "); diff --git a/src/PikaVersion.h b/src/PikaVersion.h index 9413d700e..79f32e0bd 100644 --- a/src/PikaVersion.h +++ b/src/PikaVersion.h @@ -2,4 +2,4 @@ #define PIKA_VERSION_MINOR 12 #define PIKA_VERSION_MICRO 5 -#define PIKA_EDIT_TIME "2023/08/12 22:51:55" +#define PIKA_EDIT_TIME "2023/08/12 22:53:45"