Deleted Added
full compact
26c26
< * $FreeBSD: head/sys/teken/teken_subr.h 197114 2009-09-12 08:19:24Z ed $
---
> * $FreeBSD: head/sys/teken/teken_subr.h 197115 2009-09-12 10:34:34Z ed $
789,790d788
<
< c = teken_scs_process(t, c);
792,795c790,802
< /* XXX: Don't process zero-width characters yet. */
< width = teken_wcwidth(c);
< if (width <= 0)
< return;
---
> if (t->t_utf8_left == -1) {
> #ifdef TEKEN_XTERM
> if (c <= 0x1B)
> return;
> #endif /* TEKEN_XTERM */
> width = 1;
> } else {
> c = teken_scs_process(t, c);
> width = teken_wcwidth(c);
> /* XXX: Don't process zero-width characters yet. */
> if (width <= 0)
> return;
> }