Skip to content

Commit

Permalink
fix: Don't automatically search_next on *
Browse files Browse the repository at this point in the history
Refs #713
  • Loading branch information
archseer committed Sep 8, 2021
1 parent d991715 commit 3426285
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3426285

Please sign in to comment.