Skip to content

Commit f89e226

Browse files
authored
chore: increase max column count for completion menu (#215)
1 parent 1dc38e3 commit f89e226

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

brush-interactive/src/reedline/reedline_shell.rs

+6
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,16 @@ impl ReedlineShell {
4343

4444
// Set up completion menu. Set an empty marker to avoid the
4545
// line's text horizontally shifting around during/after completion.
46+
// We set a max column count of 10 to ensure it's larger than the
47+
// hard-coded default (4 last we checked); if there's not enough
48+
// horizontal space in the terminal to fit that many columns, given
49+
// the actual text to be displayed, it will get effectively dereased
50+
// anyhow.
4651
let completion_menu = Box::new(
4752
reedline::ColumnarMenu::default()
4853
.with_name(COMPLETION_MENU_NAME)
4954
.with_marker("")
55+
.with_columns(10)
5056
.with_selected_text_style(Color::Blue.bold().reverse())
5157
.with_selected_match_text_style(Color::Blue.bold().reverse()),
5258
);

0 commit comments

Comments
 (0)