From 4096b93a25b322f021776e46b32a392f00b358ce Mon Sep 17 00:00:00 2001 From: Wind Date: Tue, 24 Sep 2024 21:25:20 +0800 Subject: [PATCH] ctrl-k should be cut to line end (#826) --- src/edit_mode/emacs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/edit_mode/emacs.rs b/src/edit_mode/emacs.rs index 99498306..773618fe 100644 --- a/src/edit_mode/emacs.rs +++ b/src/edit_mode/emacs.rs @@ -52,7 +52,7 @@ pub fn default_emacs_keybindings() -> Keybindings { edit_bind(EC::PasteCutBufferBefore), ); kb.add_binding(KM::CONTROL, KC::Char('w'), edit_bind(EC::CutWordLeft)); - kb.add_binding(KM::CONTROL, KC::Char('k'), edit_bind(EC::CutToEnd)); + kb.add_binding(KM::CONTROL, KC::Char('k'), edit_bind(EC::CutToLineEnd)); kb.add_binding(KM::CONTROL, KC::Char('u'), edit_bind(EC::CutFromStart)); kb.add_binding(KM::ALT, KC::Char('d'), edit_bind(EC::CutWordRight)); // Edits