From ccab8e23333b031002c8ddbd8a0e77556f05da41 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sat, 12 Mar 2022 15:35:49 -0500 Subject: Reset to vi insert mode on enter --- input.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/input.c b/input.c index 2662cda..07b8b89 100644 --- a/input.c +++ b/input.c @@ -413,6 +413,10 @@ static void inputEnter(void) { tabAccept(); editFn(&edits[id], EditClear); + if (inputMode == InputVi) { + editVi(&edits[id], L'\33'); + editVi(&edits[id], L'i'); + } command(id, cmd); } -- cgit 1.4.1