pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
048c54f
)
Removed redundant check in draw code.
author
Alexander Sedov
<alex0player@gmail.com>
Tue, 23 Apr 2013 22:34:59 +0000
(
02:34
+0400)
committer
Christoph Lohmann
<20h@r-36.net>
Wed, 24 Apr 2013 19:27:56 +0000
(21:27 +0200)
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>
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
92854b4
..
8e9e895
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-3096,7
+3096,7
@@
drawregion(int x1, int y1, int x2, int y2) {
ic = ib = ox = 0;
for(x = x1; x < x2; x++) {
new = term.line[y][x];
- if(ena_sel &&
*(new.c) &&
selected(x, y))
+ if(ena_sel && selected(x, y))
new.mode ^= ATTR_REVERSE;
if(ib > 0 && (ATTRCMP(base, new)
|| ib >= DRAW_BUF_SIZ-UTF_SIZ)) {