From 88903095c71b304ffee8d823ea071abb247a77b9 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 11 Oct 2017 23:07:17 +0200 Subject: Fix #3339 (pure python poopt fails on multiline messages) --- poezio/poopt.py | 1 + 1 file changed, 1 insertion(+) (limited to 'poezio/poopt.py') diff --git a/poezio/poopt.py b/poezio/poopt.py index 016c04e1..51474222 100644 --- a/poezio/poopt.py +++ b/poezio/poopt.py @@ -104,6 +104,7 @@ def cut_text(string: str, width: int) -> List[Tuple[int, int]]: # This is one condition to end the line: an explicit \n is found if wc == '\n': + spos += 1 retlist.append((start_pos, spos)) # And then initiate a new line -- cgit v1.2.3