diff options
-rw-r--r-- | x.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1266,6 +1266,7 @@ 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; | ||
1269 | 1270 | ||
1270 | LIMIT(oldx, 0, term.col-1); | 1271 | LIMIT(oldx, 0, term.col-1); |
1271 | LIMIT(oldy, 0, term.row-1); | 1272 | LIMIT(oldy, 0, term.row-1); |
@@ -1285,6 +1286,8 @@ xdrawcursor(void) | |||
1285 | xdrawglyph(og, oldx, oldy); | 1286 | xdrawglyph(og, oldx, oldy); |
1286 | 1287 | ||
1287 | g.u = term.line[term.c.y][term.c.x].u; | 1288 | g.u = term.line[term.c.y][term.c.x].u; |
1289 | attr = ATTR_BOLD | ATTR_ITALIC | ATTR_UNDERLINE | ATTR_STRUCK; | ||
1290 | g.mode |= term.line[term.c.y][term.c.x].mode & attr; | ||
1288 | 1291 | ||
1289 | /* | 1292 | /* |
1290 | * Select the right color for the right mode. | 1293 | * Select the right color for the right mode. |