parent
d991715ff1
commit
3426285a63
1 changed files with 2 additions and 1 deletions
|
@ -1143,7 +1143,8 @@ fn search_selection(cx: &mut Context) {
|
||||||
let query = doc.selection(view.id).primary().fragment(contents);
|
let query = doc.selection(view.id).primary().fragment(contents);
|
||||||
let regex = regex::escape(&query);
|
let regex = regex::escape(&query);
|
||||||
cx.editor.registers.get_mut('/').push(regex);
|
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) {
|
fn extend_line(cx: &mut Context) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue