diff --git a/st.c b/st.c index 1f7df24..cea84d2 100644 --- a/st.c +++ b/st.c @@ -2296,8 +2296,8 @@ tupdatebgcolor(int oldbg, int newbg) { for (int y = 0; y < term.row; y++) { for (int x = 0; x < term.col; x++) { - if (term.line[y][x].bg == oldbg) - term.line[y][x].bg = newbg; + if (TLINE(y)[x].bg == oldbg) + TLINE(y)[x].bg = newbg; } } } @@ -2307,8 +2307,8 @@ tupdatefgcolor(int oldfg, int newfg) { for (int y = 0; y < term.row; y++) { for (int x = 0; x < term.col; x++) { - if (term.line[y][x].fg == oldfg) - term.line[y][x].fg = newfg; + if (TLINE(y)[x].fg == oldfg) + TLINE(y)[x].fg = newfg; } } }