aboutsummaryrefslogtreecommitdiff
path: root/x.c
diff options
context:
space:
mode:
Diffstat (limited to 'x.c')
-rw-r--r--x.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/x.c b/x.c
index b7339e9..fbfd350 100644
--- a/x.c
+++ b/x.c
@@ -1266,7 +1266,6 @@ xdrawcursor(void)
1266 Glyph g = {' ', ATTR_NULL, defaultbg, defaultcs}, og; 1266 Glyph g = {' ', ATTR_NULL, defaultbg, defaultcs}, og;
1267 int ena_sel = sel.ob.x != -1 && sel.alt == IS_SET(MODE_ALTSCREEN); 1267 int ena_sel = sel.ob.x != -1 && sel.alt == IS_SET(MODE_ALTSCREEN);
1268 Color drawcol; 1268 Color drawcol;
1269 unsigned attr;
1270 1269
1271 LIMIT(oldx, 0, term.col-1); 1270 LIMIT(oldx, 0, term.col-1);
1272 LIMIT(oldy, 0, term.row-1); 1271 LIMIT(oldy, 0, term.row-1);
@@ -1286,8 +1285,8 @@ xdrawcursor(void)
1286 xdrawglyph(og, oldx, oldy); 1285 xdrawglyph(og, oldx, oldy);
1287 1286
1288 g.u = term.line[term.c.y][term.c.x].u; 1287 g.u = term.line[term.c.y][term.c.x].u;
1289 attr = ATTR_BOLD | ATTR_ITALIC | ATTR_UNDERLINE | ATTR_STRUCK; 1288 g.mode |= term.line[term.c.y][term.c.x].mode &
1290 g.mode |= term.line[term.c.y][term.c.x].mode & attr; 1289 (ATTR_BOLD | ATTR_ITALIC | ATTR_UNDERLINE | ATTR_STRUCK);
1291 1290
1292 /* 1291 /*
1293 * Select the right color for the right mode. 1292 * Select the right color for the right mode.