Skip to content

Commit 01391b9

Browse files
committed
Fix rewrite to not write past the edge of the screen
1 parent 2455f86 commit 01391b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_pytest/terminal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def rewrite(self, line, **markup):
214214
"""
215215
erase = markup.pop('erase', False)
216216
if erase:
217-
fill_count = self.writer.fullwidth - len(line)
217+
fill_count = self.writer.fullwidth - len(line) - 1
218218
fill = ' ' * fill_count
219219
else:
220220
fill = ''

0 commit comments

Comments
 (0)