aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/commands.rs
diff options
context:
space:
mode:
authorIvan Tham2021-06-15 03:57:16 +0000
committerBenoƮt Cortier2021-06-15 04:17:04 +0000
commit05ed3e8fb85ea31207d901180544dc883e45a008 (patch)
treeccb3ce594d1b373f55ba3ff9eaa14fe558f0f90e /helix-term/src/commands.rs
parent002f1ad397a6fff4fec044e05a8784c643a04d48 (diff)
Remove unused variables
Diffstat (limited to 'helix-term/src/commands.rs')
-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