Skip to content

Commit 3a389b7

Browse files
Hide signature when sidebar is visible.
1 parent bf991c6 commit 3a389b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ptpython/layout.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ def get_text_fragments() -> StyleAndTextTuples:
299299
HasSignature(python_input) &
300300
# Signature needs to be shown.
301301
ShowSignature(python_input) &
302+
# And no sidebar is visible.
303+
~ShowSidebar(python_input) &
302304
# Not done yet.
303305
~is_done,
304306
)

0 commit comments

Comments
 (0)