| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f83e3eb commit a0dd141
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1310,7 +1310,11 @@ def move_screen_up(current_line_start_row): | |||
| 1310 | 1310 | potential_space_below = min_height - current_line_end_row - 1 | |
| 1311 | 1311 | visible_space_below = potential_space_below - self.get_top_usable_line() | |
| 1312 | 1312 | ||
| 1313 | - info_max_rows = max(visible_space_above, visible_space_below) | ||
| 1313 | + if self.config.curtsies_list_above: | ||
| 1314 | + info_max_rows = max(visible_space_above, visible_space_below) | ||
| 1315 | + else: | ||
| 1316 | + minimum_possible_height = 4 | ||
| 1317 | + info_max_rows = max(visible_space_below, minimum_possible_height) | ||
| 1314 | 1318 | infobox = paint.paint_infobox(info_max_rows, | |
| 1315 | 1319 | int(width * self.config.cli_suggestion_width), | |
| 1316 | 1320 | self.matches_iter.matches, | |
@@ -1324,8 +1328,6 @@ def move_screen_up(current_line_start_row): | |||
| 1324 | 1328 | else None) | |
| 1325 | 1329 | ||
| 1326 | 1330 | if visible_space_below >= infobox.height or not self.config.curtsies_list_above: | |
| 1327 | - if visible_space_below < infobox.height: | ||
| 1328 | - raise ValueError('whoops %r %r' % (visible_space_below, infobox.height)) | ||
| 1329 | 1331 | arr[current_line_end_row + 1:current_line_end_row + 1 + infobox.height, 0:infobox.width] = infobox | |
| 1330 | 1332 | else: | |
| 1331 | 1333 | arr[current_line_start_row - infobox.height:current_line_start_row, 0:infobox.width] = infobox | |
| Back | FazBrowse Home | New Git URL |
0 commit comments