fix border not showing

This commit is contained in:
Night Kaly 2024-03-21 19:32:53 +00:00
parent e78bbbe944
commit a7e9f9ea14
No known key found for this signature in database
GPG key ID: 8E829D3381CFEBBE

7
ccc.c
View file

@ -464,9 +464,6 @@ void populate_files(const char *path, int ftype)
} else { } else {
perror("ccc"); perror("ccc");
} }
#if DRAW_BORDERS
draw_border_title(directory_border, true);
#endif
} }
int get_directory_size(const char *fpath, const struct stat *sb, int typeflag, struct FTW *ftwbuf) int get_directory_size(const char *fpath, const struct stat *sb, int typeflag, struct FTW *ftwbuf)
@ -573,6 +570,10 @@ void add_file_stat(char *filepath, int ftype)
*/ */
void highlight_current_line() void highlight_current_line()
{ {
#if DRAW_BORDERS
draw_border_title(directory_border, true);
#endif
long overflow = 0; long overflow = 0;
if (current_selection > LINES - 4) { if (current_selection > LINES - 4) {
/* overflown */ /* overflown */