summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-10-11 23:07:17 +0200
committermathieui <mathieui@mathieui.net>2017-10-11 23:07:17 +0200
commit88903095c71b304ffee8d823ea071abb247a77b9 (patch)
tree6ee6b3459cbb105f84ff99015825fd18031b18df
parentee5e807fc2be9175ae862302a3960d6fcb4337d9 (diff)
downloadpoezio-88903095c71b304ffee8d823ea071abb247a77b9.tar.gz
poezio-88903095c71b304ffee8d823ea071abb247a77b9.tar.bz2
poezio-88903095c71b304ffee8d823ea071abb247a77b9.tar.xz
poezio-88903095c71b304ffee8d823ea071abb247a77b9.zip
Fix #3339 (pure python poopt fails on multiline messages)
-rw-r--r--poezio/poopt.py1
1 files changed, 1 insertions, 0 deletions
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