diff options
Diffstat (limited to 'src/history.rs')
-rw-r--r-- | src/history.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/history.rs b/src/history.rs index 9e0c558..80afa37 100644 --- a/src/history.rs +++ b/src/history.rs @@ -134,7 +134,7 @@ pub fn create_dirlist_with_history( contents.sort_by(|f1, f2| sort_options.compare(f1, f2)); let contents_len = contents.len(); - let index: Option<usize> = if contents_len == 0 { + let index = if contents_len == 0 { None } else { match history.get(path) { |