fix slash in search selector status message (#1449)

imgbot
Stuart Hinson 3 years ago committed by GitHub
parent 7767703979
commit b18bda928f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);
}

Loading…
Cancel
Save