diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-05-01 12:55:50 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-05-01 12:58:36 -0400 |
commit | 6b013bb91969d7e269aa5a08da729a8370a31900 (patch) | |
tree | 3a1173b052e5abb7826509c380668d3e2e9c4be5 /src/history.rs | |
parent | ef98d3d408f9a741433523ccf557b26aa7380dbc (diff) |
add ConfigStructure trait
- make JoshutoKeymap just an alias for HashMap<i32, CommandKeybind>
- change keymap.toml to use ascii values rather than strings that
needs reparsing
Diffstat (limited to 'src/history.rs')
-rw-r--r-- | src/history.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/history.rs b/src/history.rs index c29fefe..9d85322 100644 --- a/src/history.rs +++ b/src/history.rs @@ -74,9 +74,11 @@ impl DirectoryHistory for HashMap<PathBuf, JoshutoDirList> { match self.entry(path.to_path_buf().clone()) { Entry::Occupied(mut entry) => { let dir_entry = entry.get_mut(); +/* if dir_entry.need_update() { dir_entry.update_contents(&sort_option)?; } +*/ Ok(entry.into_mut()) } Entry::Vacant(entry) => { |