mirror of
https://github.com/nushell/reedline.git
synced 2024-11-20 19:49:27 +03:00
fix ide menu not reporting correct required_lines (#781)
* fix ide menu not reporting correct required_lines * format
This commit is contained in:
parent
ced60e57cd
commit
cc9a957184
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user