no longer need position setting hack on enter

also makes enter_replxx allocation-free, allowing it to run during OOM
This commit is contained in:
dzaima 2023-02-26 18:29:46 +02:00
parent bcc19c11fd
commit 418a1c054f

View File

@ -407,9 +407,6 @@ static bool isCmd(char* s, char** e, const char* cmd) {
stopBackslash();
return REPLXX_ACTION_RESULT_CONTINUE;
}
TmpState s = getState();
s.pos = IA(s.s);
setState(s);
return replxx_invoke(global_replxx, REPLXX_ACTION_COMMIT_LINE, 0);
}
static NOINLINE bool slice_equal(B a, usz as, B b, usz bs, usz l) {