From eb91a6641ff34993ce4ae5a0cb6efaee5f910ac0 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sat, 12 Mar 2022 17:43:19 -0500 Subject: Treat C-v as an emacs key Since ^V is a specified part of vi mode line editing. --- input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input.c b/input.c index ec43bd9..bfd3509 100644 --- a/input.c +++ b/input.c @@ -484,6 +484,7 @@ static void keyCtrl(wchar_t ch) { break; case L'K': error = editFn(edit, EditDeleteTail); break; case L'T': error = editFn(edit, EditTranspose); break; case L'U': error = editFn(edit, EditDeleteHead); + break; case L'V': windowScroll(ScrollPage, -1); break; case L'W': error = editFn(edit, EditDeletePrevWord); break; case L'Y': error = editFn(edit, EditPaste); } @@ -497,7 +498,6 @@ static void keyCtrl(wchar_t ch) { break; case L'P': windowShow(windowNum() - 1); break; case L'R': windowSearch(editString(edit, &buf, &cap, NULL), -1); break; case L'S': windowSearch(editString(edit, &buf, &cap, NULL), +1); - break; case L'V': windowScroll(ScrollPage, -1); break; case L'X': error = macroExpand(edit); tabAccept(); break; default: if (inputMode == InputVi) error = editVi(edit, ch); } -- cgit 1.4.1