aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2016-05-31 22:03:58 +0200
committerBoris Faure <billiob@gmail.com>2016-05-31 22:03:58 +0200
commit7d09373c5652abeb23b3a468d4218f11c8a789b2 (patch)
treede5031d6aba53ee47dfea48e1f2528caee62c088
parentkeys: add Shift+Home to get to the top of the backlog. Closes T3582 (diff)
downloadterminology-7d09373c5652abeb23b3a468d4218f11c8a789b2.tar.gz
skip 0-width spaces. Closes https://phab.enlightenment.org/T3734
-rw-r--r--src/bin/termptyops.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bin/termptyops.c b/src/bin/termptyops.c
index d553ebd..252e271 100644
--- a/src/bin/termptyops.c
+++ b/src/bin/termptyops.c
@@ -171,6 +171,11 @@ termpty_text_append(Termpty *ty, const Eina_Unicode *codepoints, int len)
}
g = _termpty_charset_trans(codepoints[i], ty);
+ /* Skip 0-width space */
+ if (EINA_UNLIKELY(g == 0x200b))
+ {
+ continue;
+ }
termpty_cell_codepoint_att_fill(ty, g, ty->termstate.att,
&(cells[ty->cursor_state.cx]), 1);