Move history.rs into its own module

This commit is contained in:
Peter Ammon
2025-11-02 11:40:17 -08:00
parent 458fe1be2f
commit 248eb2eb4a
2 changed files with 4 additions and 3 deletions

View File

@@ -64,8 +64,6 @@
wutil::{FileId, INVALID_FILE_ID, file_id_for_file, wgettext_fmt, wrealpath, wstat, wunlink},
};
mod file;
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum SearchType {
/// Search for commands exactly matching the given string.
@@ -103,7 +101,7 @@ pub enum SearchDirection {
Backward,
}
use self::file::time_to_seconds;
use super::file::time_to_seconds;
// Our history format is intended to be valid YAML. Here it is:
//

3
src/history/mod.rs Normal file
View File

@@ -0,0 +1,3 @@
mod file;
pub mod history;
pub use history::*;