1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Fix broken double-width chars when displaying status leds

This commit is contained in:
Felix Janda 2017-12-28 15:36:03 +01:00
parent 8a8af596e0
commit e739ed07dc

View File

@ -285,6 +285,13 @@ draw_leds(struct session *ses)
term->leds_length += LEDS_COUNT + 2;
end:
#ifdef CONFIG_UTF8
if (term->utf8_cp) {
struct box box;
set_box(&box, xpos, ypos, LEDS_COUNT + 1, 1);
fix_dwchar_around_box(term, &box, 0, 0, 0);
}
#endif
/* Redraw each 100ms. */
if (!drawing && redraw_timer == TIMER_ID_UNDEF) {
milliseconds_T delay = compute_redraw_interval();