diff --git a/window.c b/window.c index b6c0fbf..5a6f458 100644 --- a/window.c +++ b/window.c @@ -73,73 +73,73 @@ void print_dir(WINDOW *win, unsigned long file_count, unsigned long longest_name void window_main(WINDOW *win, unsigned int start_y, unsigned int start_x){ - unsigned int local_width; - unsigned int local_height; - unsigned long file_count = 0; - unsigned long longest_name = 0; + unsigned int local_width; + unsigned int local_height; + unsigned long file_count = 0; + unsigned long longest_name = 0; - //{{{ size & positioning - wresize(win, terminal_height, terminal_width/3); - getmaxyx(win, local_height, local_width); - mvwin(win, start_y, start_x); - wclear(win); - //}}} - - wmove(win, 1, 1); - wprintw(win, "meow"); - get_dir_size(".", &file_count, &longest_name, 0); - char **dir_content; - dir_content = calloc(file_count, sizeof(*dir_content)); - for (unsigned long i = 0; i