about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-03-12 16:34:11 -0500
committerJune McEnroe <june@causal.agency>2022-03-12 16:34:11 -0500
commit4a9e2ad86e5279a446848e8efc80e99e23c5e640 (patch)
treedff0578dfeebb66431e7d6460362138c6f2d02b5
parentCall editVi from input.c (diff)
downloadcatgirl-4a9e2ad86e5279a446848e8efc80e99e23c5e640.tar.gz
catgirl-4a9e2ad86e5279a446848e8efc80e99e23c5e640.zip
Lower ESCDELAY in vi mode
-rw-r--r--input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input.c b/input.c
index abfc421..ec43bd9 100644
--- a/input.c
+++ b/input.c
@@ -135,7 +135,7 @@ void inputInit(void) {
 
 	keypad(uiInput, true);
 	nodelay(uiInput, true);
-	notimeout(uiInput, inputMode == InputVi);
+	ESCDELAY = (inputMode == InputVi ? 50 : 1000);
 }
 
 static void inputAdd(struct Style reset, struct Style *style, const char *str) {