Skip to content

Commit b766cce

Browse files
committed
Merge remote-tracking branch 'upstream/master' into Upstream_sync
2 parents f4adf7d + 83001ea commit b766cce

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/output/terminal_noncurses.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,8 @@ int draw_terminal_noncurses(int tty, int lines, int width, int number_of_bars, i
467467
center_adjusted = 1;
468468
}
469469

470-
if (current_cell < 8 || current_cell > 0) {
470+
// horizontal gradient
471+
if (current_cell > 0) {
471472
if (!gradient && horizontal_gradient) {
472473
cx += snprintf(ttyframe_buffer + cx, ttybuf_length - cx,
473474
"\033[38;2;%d;%d;%dm",
@@ -537,7 +538,8 @@ int draw_terminal_noncurses(int tty, int lines, int width, int number_of_bars, i
537538
center_adjusted = 1;
538539
}
539540

540-
if (current_cell < 8 || current_cell > 0) {
541+
// horizontal gradient
542+
if (current_cell > 0) {
541543
if (!gradient && horizontal_gradient) {
542544
cx +=
543545
swprintf(frame_buffer + cx, buf_length - cx, L"\033[38;2;%d;%d;%dm",

0 commit comments

Comments
 (0)