From 22d4d3d17a6c34f4336b635a26e563e171b54ad3 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 4 Jan 2024 13:38:40 +0000 Subject: [PATCH] Remove leftover diagnostics. --- src/file.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/file.rs b/src/file.rs index dac6e1a..b3518ae 100644 --- a/src/file.rs +++ b/src/file.rs @@ -318,8 +318,6 @@ impl File { initial_pos.item = max(initial_pos.item, contents.first_index()); initial_pos.item = min(initial_pos.item, contents.last_index()); - dbg!(initial_pos); - let ff = File { contents, rendered: HashMap::new(), @@ -430,7 +428,6 @@ impl File { self.pos.line = rendered.len(); self.pos.width = Some(w); }; - dbg!(self.pos); } fn fix_overshoot_at_top(&mut self) { @@ -857,7 +854,10 @@ impl } else { fs }; - let fs = fs.add(Pr('q'), "Exit", 100); + let fs = fs + .add(Pr('/'), "Search Down", 20) + .add(Pr('\\'), "Search Up", 19) + .add(Pr('q'), "Exit", 100); // We calculate the percentage through the file in a // loose sort of way, by assuming all items are the -- 2.30.2