From b718b685d508c8b805cc79d5c553ae4f9c503c35 Mon Sep 17 00:00:00 2001 From: grayjk Date: Tue, 25 Jun 2024 13:47:51 -0700 Subject: [PATCH] call length less in _wrap_chunks --- blessed/sequences.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blessed/sequences.py b/blessed/sequences.py index 0f4c70a..b45d019 100644 --- a/blessed/sequences.py +++ b/blessed/sequences.py @@ -189,7 +189,7 @@ def _wrap_chunks(self, chunks): break cur_line.append(chunks.pop()) cur_len += chunk_len - if chunks and Sequence(chunks[-1], term).length() > width: + if chunks and chunk_len > width: self._handle_long_word(chunks, cur_line, cur_len, width) if drop_whitespace and ( cur_line and Sequence(cur_line[-1], term).strip() == ''):