Commit f89e226 1 parent 1dc38e3 commit f89e226 Copy full SHA for f89e226
File tree 1 file changed +6
-0
lines changed
brush-interactive/src/reedline
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,16 @@ impl ReedlineShell {
43
43
44
44
// Set up completion menu. Set an empty marker to avoid the
45
45
// 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.
46
51
let completion_menu = Box :: new (
47
52
reedline:: ColumnarMenu :: default ( )
48
53
. with_name ( COMPLETION_MENU_NAME )
49
54
. with_marker ( "" )
55
+ . with_columns ( 10 )
50
56
. with_selected_text_style ( Color :: Blue . bold ( ) . reverse ( ) )
51
57
. with_selected_match_text_style ( Color :: Blue . bold ( ) . reverse ( ) ) ,
52
58
) ;
You can’t perform that action at this time.
0 commit comments