chiark / gitweb /
Remove leftover diagnostics.
authorSimon Tatham <anakin@pobox.com>
Thu, 4 Jan 2024 13:38:40 +0000 (13:38 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 4 Jan 2024 13:38:47 +0000 (13:38 +0000)
src/file.rs

index dac6e1aec4cae95f51aabb8a8df90d548c996f0f..b3518ae645b6c634a4c6b49b4242550c45688810 100644 (file)
@@ -318,8 +318,6 @@ impl<Type: FileType, Source: FileDataSource> File<Type, Source> {
         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<Type: FileType, Source: FileDataSource> File<Type, Source> {
             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<Type: FileType, Source: FileDataSource>
                 } 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