st
simple terminal
git clone https://9o.is/git/st.git
commit 5fdf2aa190df7e696c25d293646b6d3ef33f0d07 parent cab66c56eac86a83442ab33e921553c6b8952602 Author: Alexander Sedov <alex0player@gmail.com> Date: Wed, 24 Apr 2013 02:34:59 +0400 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:
| M | st.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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)) {