summaryrefslogtreecommitdiffstats
path: root/src/commands/cursor_move.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-06-04 10:49:47 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-06-04 13:26:09 -0400
commit7036a7e6ff57b7e5e4b99133ea7466a3b24bf0ce (patch)
treea23141ae6474748f7ae49e04316136f2906fe7bd /src/commands/cursor_move.rs
parentda20212f32c8b43400d0aec2af39376651f32b9d (diff)
revert back to previous printing method
- fix index out of bounds error when multiple threads are running
Diffstat (limited to 'src/commands/cursor_move.rs')
-rw-r--r--src/commands/cursor_move.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/commands/cursor_move.rs b/src/commands/cursor_move.rs
index e07cbf8..2409a9e 100644
--- a/src/commands/cursor_move.rs
+++ b/src/commands/cursor_move.rs
@@ -19,16 +19,10 @@ pub fn cursor_move(mut new_index: usize, context: &mut JoshutoContext, view: &Jo
new_index = dir_len - 1;
}
curr_tab.curr_list.index = Some(new_index);
- curr_tab.curr_list.pagestate.update_page_state(
- new_index,
- view.mid_win.rows,
- dir_len,
- context.config_t.scroll_offset,
- );
}
}
- curr_tab.refresh_curr(&view.mid_win);
+ curr_tab.refresh_curr(&view.mid_win, &context.config_t);
curr_tab.refresh_path_status(&view.top_win, context.config_t.tilde_in_titlebar);
curr_tab.refresh_file_status(&view.bot_win);
curr_tab.refresh_preview(&view.right_win, &context.config_t);