Skip to content

Commit

Permalink
try this, CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jquast committed Jun 26, 2024
1 parent 98af081 commit d07c3d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blessed/sequences.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_wrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
child()

0 comments on commit d07c3d3

Please sign in to comment.