summaryrefslogtreecommitdiff
path: root/src/window.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.py')
-rw-r--r--src/window.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.py b/src/window.py
index 87014cfd..2ee52b5e 100644
--- a/src/window.py
+++ b/src/window.py
@@ -216,8 +216,8 @@ class TextWin(Win):
limit = txt[:self.width-offset].find('\n')
else:
# break between words if possible
- if len(txt) >= self.width:
- limit = txt[:self.width-offset-1].rfind(' ')
+ if len(txt) >= self.width-offset:
+ limit = txt[:self.width-offset].rfind(' ')
this_line_was_broken_by_space = True
if limit <= 0:
limit = self.width-offset-1