added printing of mid_content[selected_file_current].file_name in top ui
This commit is contained in:
6
window.c
6
window.c
@@ -37,11 +37,13 @@ void window_top(WINDOW *win){
|
||||
werase(win);
|
||||
|
||||
if (pthread_mutex_trylock(&mutex_top) == 0) {
|
||||
wattron(win, COLOR_PAIR(COLOR_PATH));
|
||||
if (*top_buffer != ' ') { /*printing ' ' (standard initialized value, see threading_init) makes valgrind throw a fuss*/
|
||||
wattron(win, COLOR_PAIR(COLOR_PATH));
|
||||
mvwaddstr(win, 0, 0, top_buffer);
|
||||
mvwaddch(win, 0, strlen(top_buffer), '/');
|
||||
wattroff(win, COLOR_PAIR(COLOR_PATH));
|
||||
mvwaddstr(win, 0, strlen(top_buffer)+1, mid_content[selected_file_current].file_name);
|
||||
}
|
||||
wattroff(win, COLOR_PAIR(COLOR_PATH));
|
||||
pthread_mutex_unlock(&mutex_top);
|
||||
} else {
|
||||
mvwaddstr(win, 0, terminal_width/2, "LOADING");
|
||||
|
||||
Reference in New Issue
Block a user