summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--helix-term/src/commands.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 0f2a29c6..10d5e264 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -715,8 +715,6 @@ pub fn search(cx: &mut Context) {
let view_id = view.id;
let prompt = ui::regex_prompt(cx, "search:".to_string(), move |view, doc, regex| {
- let text = doc.text();
- let start = doc.selection(view.id).cursor();
_search(doc, view, &contents, &regex, false);
// TODO: only store on enter (accept), not update