mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
add temporary fix for diverging prompt_toolkit layout
This commit is contained in:
parent
4e4cfda9f0
commit
be6bc4522c
1 changed files with 5 additions and 1 deletions
|
@ -41,7 +41,11 @@ class PromptToolkitCompleter(Completer):
|
|||
|
||||
def reserve_space(self):
|
||||
cli = builtins.__xonsh_shell__.shell.prompter.cli
|
||||
#TODO remove after next prompt_toolkit release
|
||||
try:
|
||||
window = cli.application.layout.children[1].children[1].content
|
||||
except AttributeError:
|
||||
window = cli.application.layout.children[1].content
|
||||
h = window.render_info.content_height
|
||||
r = builtins.__xonsh_env__.get('COMPLETIONS_MENU_ROWS')
|
||||
size = h + r
|
||||
|
|
Loading…
Add table
Reference in a new issue