diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-09-26 10:57:53 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-09-26 10:57:53 -0400 |
commit | 01700fd8d33e5e7604bbe617c79244a5d55dd355 (patch) | |
tree | f30c1345203dfb2304e98a9a33dcabaeadb7235e /src/history.rs | |
parent | b7c83ea527b7825529298106f8ea444f3921ed00 (diff) |
fix regression where reload resets cursor to beginning
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 e28a107..0412740 100644 --- a/src/history.rs +++ b/src/history.rs @@ -78,7 +78,7 @@ impl DirectoryHistory for JoshutoHistory { } fn reload(&mut self, path: &Path, options: &DisplayOption) -> io::Result<()> { - let dirlist = JoshutoDirList::from_path(path.to_path_buf(), options)?; + let dirlist = create_dirlist_with_history(self, path, &options)?; self.insert(path.to_path_buf(), dirlist); Ok(()) } |