From 7091c47a2c054e4d038be460d4b1486b5046936d Mon Sep 17 00:00:00 2001 From: nova Date: Tue, 16 Jun 2026 23:41:39 +0200 Subject: [PATCH] comment --- dir.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dir.c b/dir.c index ee37286..8d5b6f7 100644 --- a/dir.c +++ b/dir.c @@ -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;