about summary refs log tree commit diff
path: root/input.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-03-12 16:19:02 -0500
committerJune McEnroe <june@causal.agency>2022-03-12 16:19:02 -0500
commitfc56a9f8d70579393e66a22a7df15fba2d78c154 (patch)
tree92ce33595da31df07ce93db09d32959a5eae9f5c /input.c
parentReset to vi insert mode on enter (diff)
downloadcatgirl-fc56a9f8d70579393e66a22a7df15fba2d78c154.tar.gz
catgirl-fc56a9f8d70579393e66a22a7df15fba2d78c154.zip
Add edit option to set line editing mode
I'm not super happy with the guessing based on .editrc or .inputrc
because I'm not parsing the files for real, but it's a conservative
guess and should do the right thing in most cases.
Diffstat (limited to '')
-rw-r--r--input.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/input.c b/input.c
index 07b8b89..889bde7 100644
--- a/input.c
+++ b/input.c
@@ -44,10 +44,7 @@
 #include "chat.h"
 #include "edit.h"
 
-static enum {
-	InputEmacs,
-	InputVi,
-} inputMode;
+enum InputMode inputMode;
 
 #define ENUM_KEY \
 	X(KeyCtrlLeft, "\33[1;5D", NULL) \