fix ide menu not reporting correct required_lines (#781)

* fix ide menu not reporting correct required_lines

* format
This commit is contained in:
maxomatic458 2024-04-22 20:14:01 +02:00 committed by GitHub
parent ced60e57cd
commit cc9a957184
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,7 @@ fn main() -> io::Result<()> {
// Max width of the completion box, including the border
let max_completion_width: u16 = 50;
// Max height of the completion box, including the border
let max_completion_height = u16::MAX;
let max_completion_height: u16 = u16::MAX;
// Padding inside of the completion box (on the left and right side)
let padding: u16 = 0;
// Whether to draw the default border around the completion box

View File

@ -819,6 +819,7 @@ impl Menu for IdeMenu {
fn menu_required_lines(&self, _terminal_columns: u16) -> u16 {
self.get_rows()
.min(self.default_details.max_completion_height)
}
fn menu_string(&self, available_lines: u16, use_ansi_coloring: bool) -> String {