about summary refs log tree commit diff
path: root/input.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--input.c4
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);
 }