diff options
author | DLFW <daniel@llin.info> | 2021-12-13 03:54:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-12 21:54:43 -0500 |
commit | c4d85b59ff124e0ea047be352ab667e1b0d03a5c (patch) | |
tree | 41969ffa6d62193f14b606dc6753941da2a08567 /src/fs | |
parent | d11f45afd046bcac85a8be93f9c98ac695b82d10 (diff) |
Fix: DirList::need_update considers mtime change (#110)
* Fix: DirList::need_update considers mtime change
Restores behavior which has been removed in commit 7d8b6dd.
`JoshutoDirList::need_update` does not only consider explicit
deprecation but also a changed mtime from the file system.
* Create_or_soft_update for parent on tab switch
When switching a tab, create_or_soft_update is also applied on the
parent directory (shown in the left most pane). Doing so updates the
left most pane when appearing after a tab-switch in case the content
has changed.
* Do soft-reload when opening directory
By issuing a soft-reload when opening a directory with the "open"
command, changed, deleted or added files/dirs cause an update of the
dir-lists of all three panes.
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/dirlist.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs/dirlist.rs b/src/fs/dirlist.rs index 712a22a..0c8d6d6 100644 --- a/src/fs/dirlist.rs +++ b/src/fs/dirlist.rs @@ -96,7 +96,7 @@ impl JoshutoDirList { } pub fn need_update(&self) -> bool { - self._need_update + self._need_update || self.modified() } pub fn file_path(&self) -> &path::PathBuf { |