fix slash in search selector status message (#1449)

This commit is contained in:
Stuart Hinson 2022-01-05 20:39:19 -05:00 committed by GitHub
parent 7767703979
commit b18bda928f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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