From: Simon Tatham Date: Thu, 4 Jan 2024 13:38:40 +0000 (+0000) Subject: Remove leftover diagnostics. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=22d4d3d17a6c34f4336b635a26e563e171b54ad3;p=mastodonochrome.git Remove leftover diagnostics. --- 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