Skip to content

Commit

Permalink
fix slash in search selector status message (#1449)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarth authored Jan 6, 2022
1 parent 7767703 commit b18bda9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1639,7 +1639,7 @@ 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);
let msg = format!("register '{}' set to '{}'", '\\', query);
let msg = format!("register '{}' set to '{}'", '/', query);
cx.editor.set_status(msg);
}

Expand Down

0 comments on commit b18bda9

Please sign in to comment.