about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-03-12 17:43:19 -0500
committerJune McEnroe <june@causal.agency>2022-03-12 17:43:28 -0500
commiteb91a6641ff34993ce4ae5a0cb6efaee5f910ac0 (patch)
treefcdc30885f60d90d40b1fc4636189df89ecefd0e
parentImplement vi insert mode (diff)
downloadcatgirl-eb91a6641ff34993ce4ae5a0cb6efaee5f910ac0.tar.gz
catgirl-eb91a6641ff34993ce4ae5a0cb6efaee5f910ac0.zip
Treat C-v as an emacs key
Since ^V is a specified part of vi mode line editing.
-rw-r--r--input.c2
1 files changed, 1 insertions, 1 deletions
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);
 	}