summaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-09-08 05:58:11 +0000
committerBlaž Hrastnik2021-09-08 07:34:04 +0000
commit3426285a6341702ace35817d38cefd2bb8b16437 (patch)
treee1e460ee21e57e78044576f4ab997d9185a13959 /helix-term
parentd991715ff1fbd906fab60dda1f70f700c9e14817 (diff)
fix: Don't automatically search_next on *
Refs #713
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/commands.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 841af22a..a7a71576 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -1143,7 +1143,8 @@ fn search_selection(cx: &mut Context) {
let query = doc.selection(view.id).primary().fragment(contents);
let regex = regex::escape(&query);
cx.editor.registers.get_mut('/').push(regex);
- search_next(cx);
+ let msg = format!("register '{}' set to '{}'", '\\', query);
+ cx.editor.set_status(msg);
}
fn extend_line(cx: &mut Context) {