remove unncessary color attron

This commit is contained in:
Night Kaly 2024-03-14 15:41:31 +00:00
parent 53da8722f8
commit bd855396be
No known key found for this signature in database
GPG key ID: 8E829D3381CFEBBE

2
ccc.c
View file

@ -489,7 +489,6 @@ void highlight_current_line()
for (long i = overflow; i < range; i++) { for (long i = overflow; i < range; i++) {
if ((overflow == 0 && i == current_selection) || (overflow != 0 && i == current_selection)) { if ((overflow == 0 && i == current_selection) || (overflow != 0 && i == current_selection)) {
wattron(directory_content, A_REVERSE); wattron(directory_content, A_REVERSE);
wattron(directory_content, COLOR_PAIR(5));
/* update the panel */ /* update the panel */
wclear(panel); wclear(panel);
@ -508,7 +507,6 @@ void highlight_current_line()
wattroff(directory_content, A_REVERSE); wattroff(directory_content, A_REVERSE);
wattroff(directory_content, COLOR_PAIR(color)); wattroff(directory_content, COLOR_PAIR(color));
wattroff(directory_content, COLOR_PAIR(5));
free(line); free(line);
line_count++; line_count++;
} }