mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-09 13:02:01 +03:00
fixed drawing zerowidth characters
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
This commit is contained in:
parent
e29e6126a6
commit
acd0ed038d
@ -180,11 +180,14 @@ mcview_display_nroff (mcview_t * view)
|
|||||||
#endif
|
#endif
|
||||||
tty_print_anychar (c);
|
tty_print_anychar (c);
|
||||||
}
|
}
|
||||||
#ifdef HAVE_CHARSET
|
|
||||||
if (view->utf8 && g_unichar_iswide(c))
|
|
||||||
col++;
|
|
||||||
#endif
|
|
||||||
col++;
|
col++;
|
||||||
|
#ifdef HAVE_CHARSET
|
||||||
|
if (view->utf8)
|
||||||
|
if (g_unichar_iswide(c))
|
||||||
|
col++;
|
||||||
|
else if (g_unichar_iszerowidth(c))
|
||||||
|
col--;
|
||||||
|
#endif
|
||||||
tty_setcolor (NORMAL_COLOR);
|
tty_setcolor (NORMAL_COLOR);
|
||||||
}
|
}
|
||||||
view->dpy_end = from;
|
view->dpy_end = from;
|
||||||
|
@ -151,11 +151,14 @@ mcview_display_text (mcview_t * view)
|
|||||||
#endif
|
#endif
|
||||||
tty_print_anychar (c);
|
tty_print_anychar (c);
|
||||||
}
|
}
|
||||||
#ifdef HAVE_CHARSET
|
|
||||||
if (view->utf8 && g_unichar_iswide(c))
|
|
||||||
col++;
|
|
||||||
#endif
|
|
||||||
col++;
|
col++;
|
||||||
|
#ifdef HAVE_CHARSET
|
||||||
|
if (view->utf8)
|
||||||
|
if (g_unichar_iswide(c))
|
||||||
|
col++;
|
||||||
|
else if (g_unichar_iszerowidth(c))
|
||||||
|
col--;
|
||||||
|
#endif
|
||||||
tty_setcolor (NORMAL_COLOR);
|
tty_setcolor (NORMAL_COLOR);
|
||||||
}
|
}
|
||||||
view->dpy_end = from;
|
view->dpy_end = from;
|
||||||
|
Loading…
Reference in New Issue
Block a user