comment
This commit is contained in:
@@ -172,7 +172,6 @@ void print_dir(WINDOW *win, char print_info, dir *dir){
|
||||
if (print_info) {
|
||||
#if SETTINGS_LINE_NUMBERS != 0
|
||||
if (dir->file_count > 9) {
|
||||
|
||||
unsigned long dir_file_count_ = dir->file_count;
|
||||
while(dir_file_count_ > 9) {
|
||||
offset_front++;
|
||||
@@ -180,6 +179,7 @@ void print_dir(WINDOW *win, char print_info, dir *dir){
|
||||
}
|
||||
}
|
||||
#endif
|
||||
/* scrolling of the directory if too many files are in a dir */
|
||||
if (selected_file_current > (terminal_height/3)*2 && dir->file_count > terminal_height - 2) {
|
||||
if (selected_file_current + (terminal_height/3) >= dir->file_count) {
|
||||
offset_vertical = dir->file_count - terminal_height+2;
|
||||
@@ -192,7 +192,6 @@ void print_dir(WINDOW *win, char print_info, dir *dir){
|
||||
}
|
||||
for (i = offset_vertical; i < dir->file_count && i < (terminal_height + offset_vertical); i++) {
|
||||
|
||||
|
||||
if (print_info) {
|
||||
file_size = dir->file_list[i].file_size;
|
||||
char size_index = -1;
|
||||
|
||||
Reference in New Issue
Block a user