summaryrefslogtreecommitdiffstats
path: root/src/joshuto/command/tab_switch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/joshuto/command/tab_switch.rs')
-rw-r--r--src/joshuto/command/tab_switch.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/joshuto/command/tab_switch.rs b/src/joshuto/command/tab_switch.rs
index 4c38fa0..577ea34 100644
--- a/src/joshuto/command/tab_switch.rs
+++ b/src/joshuto/command/tab_switch.rs
@@ -21,7 +21,7 @@ impl TabSwitch {
pub fn tab_switch(new_index: i32, context: &mut joshuto::JoshutoContext)
{
context.tab_index = new_index as usize;
- ui::refresh(&context);
+ ui::refresh(context);
ui::redraw_tab_view(&context.views.tab_win, &context);
ncurses::doupdate();