aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termptyops.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-04-15 23:53:28 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-04-15 23:54:47 +0900
commit6ad334c86433f48c7930588d7a5c97b73fc269ff (patch)
treef38ba665bd8b0eb99ba02319cba20a2d9bb68195 /src/bin/termptyops.c
parentcover delayed delete being for already deleted panel from other window. (diff)
downloadterminology-6ad334c86433f48c7930588d7a5c97b73fc269ff.tar.gz
zero out fmt bits for dbl width chars for spare cell.
Diffstat (limited to 'src/bin/termptyops.c')
-rw-r--r--src/bin/termptyops.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bin/termptyops.c b/src/bin/termptyops.c
index c102b44..8c3f2b7 100644
--- a/src/bin/termptyops.c
+++ b/src/bin/termptyops.c
@@ -197,8 +197,11 @@ _termpty_text_append(Termpty *ty, const Eina_Unicode *codepoints, int len)
#if defined(SUPPORT_DBLWIDTH)
cells[ty->state.cx].att.dblwidth = _termpty_is_dblwidth_get(ty, g);
if ((cells[ty->state.cx].att.dblwidth) && (ty->state.cx < (ty->w - 1)))
- termpty_cell_codepoint_att_fill(ty, 0, cells[ty->state.cx].att,
- &(cells[ty->state.cx + 1]), 1);
+ {
+ TERMPTY_FMTCLR(cells[ty->state.cx].att);
+ termpty_cell_codepoint_att_fill(ty, 0, cells[ty->state.cx].att,
+ &(cells[ty->state.cx + 1]), 1);
+ }
#endif
if (ty->state.wrap)
{