diff --git a/blessed/sequences.py b/blessed/sequences.py index 15edbf7..999b27e 100644 --- a/blessed/sequences.py +++ b/blessed/sequences.py @@ -229,7 +229,7 @@ def _handle_long_word(self, reversed_chunks, cur_line, cur_len, width): nxt += len(text) seq_length = Sequence(chunk[:nxt], term).length() if seq_length > space_left: - if cur_len == 0 and width == 1 and nxt == 1: + if cur_len == 0 and width == 1 and nxt == 1 and seq_length == 2: # Emoji etc. cannot be split under 2 cells, so in the # case of a width of 1, we have no choice but to allow # those characters to flow outside of the given cell. diff --git a/tests/test_wrap.py b/tests/test_wrap.py index 16d1da1..4200131 100644 --- a/tests/test_wrap.py +++ b/tests/test_wrap.py @@ -128,4 +128,4 @@ def child(): result = term.wrap(u'\U0001F469\u200D\U0001F469\u200D\U0001F467\u200D\U0001F466', 1) assert result == [u'\U0001F469\u200D', u'\U0001F469\u200D', u'\U0001F467\u200D', u'\U0001F466'] - child() \ No newline at end of file + child()