aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sedov2013-04-24 02:34:59 +0400
committerChristoph Lohmann2013-04-24 21:27:56 +0200
commit23d6c92c1f58ba4895a18967a3486a6b9393bd53 (patch)
treeac63d36c7391352127da7592be52c33351559356
parent0be752d2769ff212795ed4cb46581b254eed332d (diff)
downloadaur-23d6c92c1f58ba4895a18967a3486a6b9393bd53.tar.gz
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>
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index 92854b4a3bac..8e9e895e61d0 100644
--- 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)) {