diff options
author | Ivan Tham | 2021-07-30 02:39:47 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-08-05 08:25:23 +0000 |
commit | 10c77cdc038f77869a969b9e7182bce235783db7 (patch) | |
tree | 8b4f671956b5256fc45ce2132e2aa23e9de88db6 /helix-term/src | |
parent | 5342f976d4abd5fa7673fdb81c3c38828ad3abc7 (diff) |
Exit extend after yank
Yank should proceed with normal mode.
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/commands.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 773bf9cf..622a3ebd 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -3200,7 +3200,8 @@ fn yank(cx: &mut Context) { .registers .write(cx.selected_register.name(), values); - cx.editor.set_status(msg) + cx.editor.set_status(msg); + exit_select_mode(cx); } fn yank_joined_to_clipboard_impl(editor: &mut Editor, separator: &str) -> anyhow::Result<()> { @@ -3233,6 +3234,7 @@ fn yank_joined_to_clipboard_impl(editor: &mut Editor, separator: &str) -> anyhow fn yank_joined_to_clipboard(cx: &mut Context) { let line_ending = current!(cx.editor).1.line_ending; let _ = yank_joined_to_clipboard_impl(&mut cx.editor, line_ending.as_str()); + exit_select_mode(cx); } fn yank_main_selection_to_clipboard_impl(editor: &mut Editor) -> anyhow::Result<()> { @@ -3251,6 +3253,7 @@ fn yank_main_selection_to_clipboard_impl(editor: &mut Editor) -> anyhow::Result< fn yank_main_selection_to_clipboard(cx: &mut Context) { let _ = yank_main_selection_to_clipboard_impl(&mut cx.editor); + exit_select_mode(cx); } #[derive(Copy, Clone)] |