diff options
author | Jonathan Slenders <jonathan@slenders.be> | 2016-02-19 18:51:57 +0100 |
---|---|---|
committer | Jonathan Slenders <jonathan@slenders.be> | 2016-02-19 18:52:05 +0100 |
commit | a5c3135b528f3dfaea79da4d29e8d26fa1e0754b (patch) | |
tree | 30aa12e08cde173c2b71593f2be9f9645666984d | |
parent | 02dd80ae2f5996fd8d70ccf56ac64a9f17fb1b99 (diff) |
Bugfix: correctly set height of output screen. (Fixes bug in positioning of exit message of ptpython.)
-rw-r--r-- | prompt_toolkit/layout/containers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/prompt_toolkit/layout/containers.py b/prompt_toolkit/layout/containers.py index 2e0c77ea..0082c212 100644 --- a/prompt_toolkit/layout/containers.py +++ b/prompt_toolkit/layout/containers.py @@ -1220,7 +1220,8 @@ class Window(Container): new_screen.menu_position = cursor_pos_to_screen_pos( ui_content.menu_position.y, ui_content.menu_position.x) - new_screen.height = max(new_screen.height, ypos + y) + # Update output screne height. + new_screen.height = max(new_screen.height, ypos + write_position.height) return visible_line_to_row_col, rowcol_to_yx |