… | |
… | |
1834 | for (i = PART_BEG; i < RC_COUNT; i++) |
1834 | for (i = PART_BEG; i < RC_COUNT; i++) |
1835 | { |
1835 | { |
1836 | min_it (rc[i].col, ncol - 1); |
1836 | min_it (rc[i].col, ncol - 1); |
1837 | min_it (rc[i].row, nrow - 1); |
1837 | min_it (rc[i].row, nrow - 1); |
1838 | } |
1838 | } |
1839 | // TODO: this line somehow causes segfault if scr_expose() is called just after resize |
1839 | |
1840 | for (i = rc[PART_BEG].row; i <= rc[PART_END].row; i++) |
1840 | for (i = rc[PART_BEG].row; i <= rc[PART_END].row; i++) |
1841 | fill_text (&drawn_buf[i].t[rc[PART_BEG].col], 0, rc[PART_END].col - rc[PART_BEG].col + 1); |
1841 | fill_text (&drawn_buf[i].t[rc[PART_BEG].col], 0, rc[PART_END].col - rc[PART_BEG].col + 1); |
1842 | |
1842 | |
1843 | num_scr_allow = 0; |
1843 | num_scr_allow = 0; |
1844 | |
1844 | |
… | |
… | |
2085 | ccol2 = bgcolor_of (rstyle); |
2085 | ccol2 = bgcolor_of (rstyle); |
2086 | #else |
2086 | #else |
2087 | ccol2 = Color_bg; |
2087 | ccol2 = Color_bg; |
2088 | #endif |
2088 | #endif |
2089 | |
2089 | |
2090 | if (showcursor && focus) |
2090 | if (focus) |
2091 | { |
2091 | { |
2092 | if (option (Opt_cursorUnderline)) |
2092 | if (option (Opt_cursorUnderline)) |
2093 | *crp ^= RS_Uline; |
2093 | *crp ^= RS_Uline; |
2094 | else |
2094 | else |
2095 | { |
2095 | { |