diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-04-25 08:41:39 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-04-25 08:42:09 -0400 |
commit | e411fc0be674ff01b614802a1e706071593c6647 (patch) | |
tree | af6175466c9c739266539b45fae5d1b264522e78 /src/run.rs | |
parent | d41770f76a9d19c9df7fd44e971c636eb1c23e1e (diff) |
rework how previewing works
- should be more extensible now
Diffstat (limited to 'src/run.rs')
-rw-r--r-- | src/run.rs | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -117,7 +117,12 @@ fn process_threads(context: &mut JoshutoContext, view: &JoshutoView) -> Result<( fn resize_handler(context: &mut JoshutoContext, view: &JoshutoView) { ui::redraw_tab_view(&view.tab_win, &context); let curr_tab = &mut context.tabs[context.curr_tab_index]; - curr_tab.refresh(view, &context.config_t, &context.username, &context.hostname); + curr_tab.refresh( + view, + &context.config_t, + &context.username, + &context.hostname, + ); ncurses::doupdate(); } |