filter for '\0' in REPL

This commit is contained in:
lyon 2022-10-25 15:43:53 +08:00
parent 189bfad553
commit ce053f6bef

View File

@ -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;
}