Skip to content

Commit d2112a2

Browse files
tune size parameters
1 parent 01b8f6e commit d2112a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bpython/curtsies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def get_top_usable_line():
180180
get_top_usable_line=get_top_usable_line) as repl:
181181
repl.height, repl.width = window.t.height, window.t.width
182182

183-
repl.request_paint_to_pad_bottom = 10
183+
repl.request_paint_to_pad_bottom = 6
184184

185185
def process_event(e):
186186
"""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
@@ -1314,7 +1314,7 @@ def move_screen_up(current_line_start_row):
13141314
if self.config.curtsies_list_above:
13151315
info_max_rows = max(visible_space_above, visible_space_below)
13161316
else:
1317-
minimum_possible_height = 4
1317+
minimum_possible_height = 30 # smallest an over-full completion box
13181318
info_max_rows = max(visible_space_below, minimum_possible_height)
13191319
infobox = paint.paint_infobox(info_max_rows,
13201320
int(width * self.config.cli_suggestion_width),

0 commit comments

Comments
 (0)