@@ -3200,7 +3200,8 @@ fn yank(cx: &mut Context) {
32003200 .registers
32013201 .write(cx.selected_register.name(), values);
32023202
3203− cx.editor.set_status(msg)
3203+ cx.editor.set_status(msg);
3204+ exit_select_mode(cx);
32043205}
32053206
32063207fn 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
32333234fn yank_joined_to_clipboard(cx: &mut Context) {
32343235 let line_ending = current!(cx.editor).1.line_ending;
32353236 let _ = yank_joined_to_clipboard_impl(&mut cx.editor, line_ending.as_str());
3237+ exit_select_mode(cx);
32363238}
32373239
32383240fn 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<
32513253
32523254fn yank_main_selection_to_clipboard(cx: &mut Context) {
32533255 let _ = yank_main_selection_to_clipboard_impl(&mut cx.editor);
3256+ exit_select_mode(cx);
32543257}
32553258
32563259#[derive(Copy, Clone)]