fix: agree st-colorschemes with st-scrollback-ringbuffer
This commit is contained in:
8
st.c
8
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user