aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xC.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/xC.c b/xC.c
index 6d37ece..75e5ea8 100644
--- a/xC.c
+++ b/xC.c
@@ -1032,7 +1032,7 @@ input_el__restore (struct input_el *self)
static void
input_el__start_over (struct input_el *self)
{
- wchar_t x[] = { L'g' & 31, 0 };
+ wchar_t x[] = { L'c' & 31, 0 };
el_wpush (self->editline, x);
int dummy_count = 0;
@@ -14527,12 +14527,6 @@ app_editline_init (struct input_el *self)
// Just what are you doing?
CALL_ (input, bind_control, 'u', "vi-kill-line-prev");
- // See input_el__redisplay(), functionally important
- CALL_ (input, bind_control, 'q', "ed-redisplay");
- // This is what buffered el_wgets() does, functionally important;
- // perhaps it could be bound somewhere more appropriate
- CALL_ (input, bind_control, 'g', "ed-start-over");
-
// We need to hide the prompt and input first
CALL_ (input, bind, "\r", "send-line");
CALL_ (input, bind, "\n", "send-line");
@@ -14541,6 +14535,11 @@ app_editline_init (struct input_el *self)
// Source the user's defaults file
el_source (self->editline, NULL);
+
+ // See input_el__redisplay(), functionally important
+ CALL_ (input, bind_control, 'q', "ed-redisplay");
+ // This is what buffered el_wgets() does, functionally important
+ CALL_ (input, bind_control, 'c', "ed-start-over");
}
#endif // HAVE_EDITLINE