Thumbnail

rani/cscroll.git

Clone URL: https://git.buni.party/rani/cscroll.git

commit 6f57bc5d11e7174ebb8864a023540b8850fd4379 Author: Raniconduh <clagv.randomgames@gmail.com> Date: Thu Jan 06 21:26:14 2022 +0000 fix bug where newline would not be printed after file name added stdint inclusion diff --git a/include/dir.h b/include/dir.h index 64ba618..fce97f8 100644 --- a/include/dir.h +++ b/include/dir.h @@ -36 +37 @@    #include <stdbool.h>  #include <time.h> +#include <stdint.h>    #define MOWNER(M) (M >> 6)  #define MGROUP(M) (M >> 3) diff --git a/src/io.c b/src/io.c index 820d3b4..23e50d4 100644 --- a/src/io.c +++ b/src/io.c @@ -2027 +2028 @@ void curses_write_file(struct dir_entry_t * dir_entry, bool highlight) {   attron(cp);   printw("%s", dir_entry->name);   attroff(cp); - printw("%c %s\n", f_ident, u_text); + printw("%c %s", f_ident, u_text); + addch('\n');  }