diff options
author | Alexander Sedov <alex0player@gmail.com> | 2013-04-24 02:34:59 +0400 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2013-04-24 21:27:56 +0200 |
commit | 011c0f9e5bb87838afa90f2a33ba68920681e3ce (patch) | |
tree | 71d927ea107c2d5e1baf25d524d7fbc5d4c97735 /st.c | |
parent | 048c54fd5b275ac54d7819020485b77e99fcc469 (diff) | |
download | st-011c0f9e5bb87838afa90f2a33ba68920681e3ce.tar.gz st-011c0f9e5bb87838afa90f2a33ba68920681e3ce.zip |
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>
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3096,7 +3096,7 @@ drawregion(int x1, int y1, int x2, int y2) { | |||
3096 | ic = ib = ox = 0; | 3096 | ic = ib = ox = 0; |
3097 | for(x = x1; x < x2; x++) { | 3097 | for(x = x1; x < x2; x++) { |
3098 | new = term.line[y][x]; | 3098 | new = term.line[y][x]; |
3099 | if(ena_sel && *(new.c) && selected(x, y)) | 3099 | if(ena_sel && selected(x, y)) |
3100 | new.mode ^= ATTR_REVERSE; | 3100 | new.mode ^= ATTR_REVERSE; |
3101 | if(ib > 0 && (ATTRCMP(base, new) | 3101 | if(ib > 0 && (ATTRCMP(base, new) |
3102 | || ib >= DRAW_BUF_SIZ-UTF_SIZ)) { | 3102 | || ib >= DRAW_BUF_SIZ-UTF_SIZ)) { |