X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=8d4a9f2f48eb7b1c07773dfaf6611e1ed237d290;hb=b331da550b290d54592b7ba11242c92f5a303a48;hp=d7bd32ae7606c2f46fe26e77377863e06b62ae16;hpb=e7ed326d2e914a57017c9f34459824614075519b;p=st.git diff --git a/st.c b/st.c index d7bd32a..8d4a9f2 100644 --- a/st.c +++ b/st.c @@ -1402,6 +1402,9 @@ tsetattr(int *attr, int l) case 9: term.c.attr.mode |= ATTR_STRUCK; break; + case 21: + term.c.attr.mode &= ~ATTR_BOLD; + break; case 22: term.c.attr.mode &= ~(ATTR_BOLD | ATTR_FAINT); break; @@ -2537,7 +2540,7 @@ tresize(int col, int row) } /* allocate any new rows */ - for (/* i == minrow */; i < row; i++) { + for (/* i = minrow */; i < row; i++) { term.line[i] = xmalloc(col * sizeof(Glyph)); term.alt[i] = xmalloc(col * sizeof(Glyph)); }