mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
filter for '\0' in REPL
This commit is contained in:
parent
189bfad553
commit
ce053f6bef
@ -896,7 +896,9 @@ enum shell_state _do_obj_runChar(PikaObj* self,
|
||||
__clearBuff(cfg);
|
||||
goto exit;
|
||||
}
|
||||
rxBuff[cfg->lineBuff_i++] = inputChar;
|
||||
if ('\0' != inputChar) {
|
||||
rxBuff[cfg->lineBuff_i++] = inputChar;
|
||||
}
|
||||
state = SHELL_STATE_CONTINUE;
|
||||
goto exit;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user