From 418a1c054f64ff8b9d750d8afa5e25406ee93cc5 Mon Sep 17 00:00:00 2001 From: dzaima Date: Sun, 26 Feb 2023 18:29:46 +0200 Subject: [PATCH] no longer need position setting hack on enter also makes enter_replxx allocation-free, allowing it to run during OOM --- src/main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main.c b/src/main.c index 7bff3ba3..ef2745e5 100644 --- a/src/main.c +++ b/src/main.c @@ -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) {