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

Merge pull request #17 from doughdemon/leds

Fix broken double-width chars when displaying status leds
This commit is contained in:
rkd77 2017-12-29 17:48:23 +01:00 committed by GitHub
commit 92126dc4a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();