diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-04-25 11:02:43 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-04-25 11:02:43 -0400 |
commit | b82434c942ee528ce0aa72399512410eebb1bc62 (patch) | |
tree | 6b247bafb517b395046322b0bfb3f507886ee0c1 /src/preview.rs | |
parent | 8d2db42a122736cee7482b79d2afbdadc146f51b (diff) |
fix parent view not updating at root
- fix slow response time when switching tabs on userspace filesystem mounts
Diffstat (limited to 'src/preview.rs')
-rw-r--r-- | src/preview.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/preview.rs b/src/preview.rs index 917fad7..d27b567 100644 --- a/src/preview.rs +++ b/src/preview.rs @@ -13,6 +13,9 @@ use crate::MIMETYPE_T; pub fn preview_parent(curr_tab: &mut JoshutoTab, win: &JoshutoPanel, config_t: &JoshutoConfig) { if let Some(path) = curr_tab.curr_path.parent() { preview_directory(&mut curr_tab.history, path, win, config_t); + } else { + ncurses::werase(win.win); + win.queue_for_refresh(); } } |