From fc56a9f8d70579393e66a22a7df15fba2d78c154 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sat, 12 Mar 2022 16:19:02 -0500 Subject: 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. --- input.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'input.c') 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) \ -- cgit 1.4.1