cleanup
This commit is contained in:
@@ -162,9 +162,9 @@ void print_dir(WINDOW *win, char print_info, dir *dir){
|
||||
unsigned long offset_vertical = 0;
|
||||
unsigned long offset_back = 0;
|
||||
#if SETTINGS_LINE_NUMBERS == 0
|
||||
unsigned long offset_front = 0;
|
||||
unsigned long offset_front = 0;
|
||||
#else
|
||||
long offset_front = 2;
|
||||
long offset_front = 2;
|
||||
#endif
|
||||
unsigned long selected_file_current = dir->current_file - dir->file_list;
|
||||
|
||||
@@ -215,14 +215,11 @@ void print_dir(WINDOW *win, char print_info, dir *dir){
|
||||
}
|
||||
|
||||
if (dir->file_list[i].status & FILE_STATUS_SELECTED) {
|
||||
wattron(win, COLOR_PAIR(8)); /* FIFO, as seen in colors.c */
|
||||
is_selected = 1;
|
||||
} else {
|
||||
is_selected = 0;
|
||||
}
|
||||
if (dir->file_list[i].status & FILE_STATUS_SELECTED) {
|
||||
wattron(win, COLOR_PAIR(8));
|
||||
} else {
|
||||
wattron(win, COLOR_PAIR(dir->file_list[i].color_pair));
|
||||
is_selected = 0;
|
||||
}
|
||||
if (&dir->file_list[i] == dir->current_file) {
|
||||
wattron(win, A_REVERSE);
|
||||
|
||||
Reference in New Issue
Block a user