Skip to content

Commit 9f3d131

Browse files
tune size parameters
1 parent 3eca191 commit 9f3d131

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎bpython/curtsies.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def get_top_usable_line():
144144
get_top_usable_line=get_top_usable_line) as repl:
145145
repl.height, repl.width = window.t.height, window.t.width
146146

147-
repl.request_paint_to_pad_bottom = 10
147+
repl.request_paint_to_pad_bottom = 6
148148

149149
def process_event(e):
150150
"""If None is passed in, just paint the screen"""

‎bpython/curtsiesfrontend/repl.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ def move_screen_up(current_line_start_row):
12811281
if self.config.curtsies_list_above:
12821282
info_max_rows = max(visible_space_above, visible_space_below)
12831283
else:
1284-
minimum_possible_height = 4
1284+
minimum_possible_height = 30 # smallest an over-full completion box
12851285
info_max_rows = max(visible_space_below, minimum_possible_height)
12861286
infobox = paint.paint_infobox(info_max_rows,
12871287
int(width * self.config.cli_suggestion_width),

0 commit comments

Comments
 (0)