summaryrefslogtreecommitdiffstats
path: root/src/commands/cursor_move.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-05-29 23:06:38 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-05-29 23:07:27 -0400
commit5980d762dba38b003dbe54506cdd58ee85f97c8c (patch)
tree28e07e112586b73e1de426f7ae34c8c2afc68fdb /src/commands/cursor_move.rs
parent5d8525a9cc8a61e8e66a92f66132ad11ce112ff7 (diff)
move hostname and username out of Context and into a static global
Diffstat (limited to 'src/commands/cursor_move.rs')
-rw-r--r--src/commands/cursor_move.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/commands/cursor_move.rs b/src/commands/cursor_move.rs
index c17b59d..e07cbf8 100644
--- a/src/commands/cursor_move.rs
+++ b/src/commands/cursor_move.rs
@@ -29,12 +29,7 @@ pub fn cursor_move(mut new_index: usize, context: &mut JoshutoContext, view: &Jo
}
curr_tab.refresh_curr(&view.mid_win);
- curr_tab.refresh_path_status(
- &view.top_win,
- &context.username,
- &context.hostname,
- context.config_t.tilde_in_titlebar,
- );
+ 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);
ncurses::doupdate();