]> git.armaanb.net Git - st.git/blobdiff - x.c
fixed STLDFLAG order in broken st Makefile
[st.git] / x.c
diff --git a/x.c b/x.c
index 743b084b0108d0686921f2cf82cbf7950571489c..fbfd35043b7652301079ce3ccfad2e7bcd698c2d 100644 (file)
--- a/x.c
+++ b/x.c
@@ -1285,6 +1285,8 @@ xdrawcursor(void)
        xdrawglyph(og, oldx, oldy);
 
        g.u = term.line[term.c.y][term.c.x].u;
+       g.mode |= term.line[term.c.y][term.c.x].mode &
+                 (ATTR_BOLD | ATTR_ITALIC | ATTR_UNDERLINE | ATTR_STRUCK);
 
        /*
         * Select the right color for the right mode.