on master help sign in
make paste commands exit select mode
commit1271a50a82b596fda0fe33a9cdec7b0c3fb92654 authorRyan Mehri <ryan.mehri1@gmail.com> dateSun 5 Nov 2023, 08:12 (3 years ago) parent34de1ca
1 file changed+7
helix-term/src/commands.rs+7
helix-term/src/commands.rs+7
@@ -4085,22 +4085,27 @@ pub(crate) fn paste_bracketed_value(cx: &mut Context, contents: String) {
40854085 };
40864086 let (view, doc) = current!(cx.editor);
40874087 paste_impl(&[contents], doc, view, paste, count, cx.editor.mode);
4088+ exit_select_mode(cx);
40884089}
40894090
40904091fn paste_clipboard_after(cx: &mut Context) {
40914092 paste(cx.editor, '+', Paste::After, cx.count());
4093+ exit_select_mode(cx);
40924094}
40934095
40944096fn paste_clipboard_before(cx: &mut Context) {
40954097 paste(cx.editor, '+', Paste::Before, cx.count());
4098+ exit_select_mode(cx);
40964099}
40974100
40984101fn paste_primary_clipboard_after(cx: &mut Context) {
40994102 paste(cx.editor, '*', Paste::After, cx.count());
4103+ exit_select_mode(cx);
41004104}
41014105
41024106fn paste_primary_clipboard_before(cx: &mut Context) {
41034107 paste(cx.editor, '*', Paste::Before, cx.count());
4108+ exit_select_mode(cx);
41044109}
41054110
41064111fn replace_with_yanked(cx: &mut Context) {
@@ -4160,6 +4165,7 @@ fn paste_after(cx: &mut Context) {
41604165 Paste::After,
41614166 cx.count(),
41624167 );
4168+ exit_select_mode(cx);
41634169}
41644170
41654171fn paste_before(cx: &mut Context) {
@@ -4169,6 +4175,7 @@ fn paste_before(cx: &mut Context) {
41694175 Paste::Before,
41704176 cx.count(),
41714177 );
4178+ exit_select_mode(cx);
41724179}
41734180
41744181fn get_lines(doc: &Document, view_id: ViewId) -> Vec<usize> {