summaryrefslogtreecommitdiffstats
path: root/src/run.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-04-25 08:41:39 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-04-25 08:42:09 -0400
commite411fc0be674ff01b614802a1e706071593c6647 (patch)
treeaf6175466c9c739266539b45fae5d1b264522e78 /src/run.rs
parentd41770f76a9d19c9df7fd44e971c636eb1c23e1e (diff)
rework how previewing works
- should be more extensible now
Diffstat (limited to 'src/run.rs')
-rw-r--r--src/run.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/run.rs b/src/run.rs
index 29838cf..f070392 100644
--- a/src/run.rs
+++ b/src/run.rs
@@ -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();
}