on master help sign in
make replace with clipboard commands exit select mode
5913073Ryan Mehri
helix-term/src/commands.rs+2
@@ -4144,10 +4144,12 @@ fn replace_with_yanked_impl(editor: &mut Editor, register: char, count: usize) {
4144
4144
4145fn replace_selections_with_clipboard(cx: &mut Context) {
4145fn replace_selections_with_clipboard(cx: &mut Context) {
4146 replace_with_yanked_impl(cx.editor, '+', cx.count());
4146 replace_with_yanked_impl(cx.editor, '+', cx.count());
4147+ exit_select_mode(cx);
4147}
4148}
4148
4149
4149fn replace_selections_with_primary_clipboard(cx: &mut Context) {
4150fn replace_selections_with_primary_clipboard(cx: &mut Context) {
4150 replace_with_yanked_impl(cx.editor, '*', cx.count());
4151 replace_with_yanked_impl(cx.editor, '*', cx.count());
4152+ exit_select_mode(cx);
4151}
4153}
4152
4154
4153fn paste(editor: &mut Editor, register: char, pos: Paste, count: usize) {
4155fn paste(editor: &mut Editor, register: char, pos: Paste, count: usize) {