diff options
author | June McEnroe <june@causal.agency> | 2022-03-12 16:19:02 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2022-03-12 16:19:02 -0500 |
commit | fc56a9f8d70579393e66a22a7df15fba2d78c154 (patch) | |
tree | 92ce33595da31df07ce93db09d32959a5eae9f5c /input.c | |
parent | Reset to vi insert mode on enter (diff) | |
download | catgirl-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.c | 5 |
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) \ |