aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorRyan Mehri2023-11-05 16:14:39 +0000
committerMichael Davis2023-11-18 07:07:57 +0000
commit5913073733b8724d97589ec9999252256708cf3c (patch)
tree38b112bc70fa7b3abd4e75f0d53a55204cdf8073 /helix-term
parent1271a50a82b596fda0fe33a9cdec7b0c3fb92654 (diff)
make replace with clipboard commands exit select mode
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/commands.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 4e73568b..d300f848 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -4144,10 +4144,12 @@ fn replace_with_yanked_impl(editor: &mut Editor, register: char, count: usize) {
fn replace_selections_with_clipboard(cx: &mut Context) {
replace_with_yanked_impl(cx.editor, '+', cx.count());
+ exit_select_mode(cx);
}
fn replace_selections_with_primary_clipboard(cx: &mut Context) {
replace_with_yanked_impl(cx.editor, '*', cx.count());
+ exit_select_mode(cx);
}
fn paste(editor: &mut Editor, register: char, pos: Paste, count: usize) {