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:
parent
bcc19c11fd
commit
418a1c054f
@ -407,9 +407,6 @@ static bool isCmd(char* s, char** e, const char* cmd) {
|
|||||||
stopBackslash();
|
stopBackslash();
|
||||||
return REPLXX_ACTION_RESULT_CONTINUE;
|
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);
|
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) {
|
static NOINLINE bool slice_equal(B a, usz as, B b, usz bs, usz l) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user