Skip to content

Commit 207d18e

Browse files
Bug fix in float positioning.
1 parent af15490 commit 207d18e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prompt_toolkit/layout/containers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def write_to_screen(self, cli, screen, write_position):
247247

248248
xpos = cursor_position.x
249249
if xpos + width > write_position.width:
250-
xpos = write_position.width - width
250+
xpos = max(0, write_position.width - width)
251251
else:
252252
xpos = 0
253253
width = write_position.width

0 commit comments

Comments
 (0)