diff options
author | June McEnroe <june@causal.agency> | 2022-03-12 15:35:49 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2022-03-12 15:35:49 -0500 |
commit | ccab8e23333b031002c8ddbd8a0e77556f05da41 (patch) | |
tree | 6bd46db197d5a8bb48b776bbcfed6352481cef2b | |
parent | Implement basic esc/i mode switching (diff) | |
download | catgirl-ccab8e23333b031002c8ddbd8a0e77556f05da41.tar.gz catgirl-ccab8e23333b031002c8ddbd8a0e77556f05da41.zip |
Reset to vi insert mode on enter
Diffstat (limited to '')
-rw-r--r-- | input.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |