mirror of git://git.suckless.org/st
Removed redundant check in draw code.
We're now clearing empty areas with spaces, so there is no point to check if character contains non-empty string. Signed-off-by: Christoph Lohmann <20h@r-36.net>
This commit is contained in:
parent
048c54fd5b
commit
011c0f9e5b
2
st.c
2
st.c
|
@ -3096,7 +3096,7 @@ drawregion(int x1, int y1, int x2, int y2) {
|
||||||
ic = ib = ox = 0;
|
ic = ib = ox = 0;
|
||||||
for(x = x1; x < x2; x++) {
|
for(x = x1; x < x2; x++) {
|
||||||
new = term.line[y][x];
|
new = term.line[y][x];
|
||||||
if(ena_sel && *(new.c) && selected(x, y))
|
if(ena_sel && selected(x, y))
|
||||||
new.mode ^= ATTR_REVERSE;
|
new.mode ^= ATTR_REVERSE;
|
||||||
if(ib > 0 && (ATTRCMP(base, new)
|
if(ib > 0 && (ATTRCMP(base, new)
|
||||||
|| ib >= DRAW_BUF_SIZ-UTF_SIZ)) {
|
|| ib >= DRAW_BUF_SIZ-UTF_SIZ)) {
|
||||||
|
|
Loading…
Reference in New Issue