@@ -78,7 +78,7 @@ pub struct StatusBar {
7878 display_buffer : String ,
7979 mode : UIMode ,
8080 mouse : bool ,
81- status_bar_height : usize ,
81+ height : usize ,
8282 dirty : bool ,
8383 id : ComponentId ,
8484 progress_spinner : ProgressSpinner ,
@@ -123,7 +123,7 @@ impl StatusBar {
123123 dirty : true ,
124124 mode : UIMode :: Normal ,
125125 mouse : context. settings . terminal . use_mouse . is_true ( ) ,
126- status_bar_height : 1 ,
126+ height : 1 ,
127127 id : ComponentId :: default ( ) ,
128128 auto_complete : AutoComplete :: new ( Vec :: new ( ) ) ,
129129 progress_spinner,
@@ -254,13 +254,13 @@ impl StatusBar {
254254impl Component for StatusBar {
255255 fn draw ( & mut self , grid : & mut CellBuffer , area : Area , context : & mut Context ) {
256256 let total_rows = area. height ( ) ;
257- if total_rows <= self . status_bar_height {
257+ if total_rows <= self . height {
258258 return ;
259259 }
260260
261261 self . container . draw (
262262 grid,
263- area. take_rows ( total_rows. saturating_sub ( self . status_bar_height ) ) ,
263+ area. take_rows ( total_rows. saturating_sub ( self . height ) ) ,
264264 context,
265265 ) ;
266266
@@ -273,7 +273,7 @@ impl Component for StatusBar {
273273 match self . mode {
274274 UIMode :: Normal => { }
275275 UIMode :: Command => {
276- let area = area. nth_row ( total_rows. saturating_sub ( self . status_bar_height ) ) ;
276+ let area = area. nth_row ( total_rows. saturating_sub ( self . height ) ) ;
277277 self . draw_command_bar ( grid, area, context) ;
278278 /* don't autocomplete for less than 3 characters */
279279 if self . ex_buffer . as_str ( ) . split_graphemes ( ) . len ( ) <= 2 {
@@ -570,7 +570,7 @@ impl Component for StatusBar {
570570 self . mode = * m;
571571 match m {
572572 UIMode :: Normal => {
573- self . status_bar_height = 1 ;
573+ self . height = 1 ;
574574 if !self . ex_buffer . is_empty ( ) {
575575 context
576576 . replies
@@ -587,10 +587,10 @@ impl Component for StatusBar {
587587 self . ex_buffer_cmd_history_pos . take ( ) ;
588588 }
589589 UIMode :: Command => {
590- self . status_bar_height = 2 ;
590+ self . height = 2 ;
591591 }
592592 _ => {
593- self . status_bar_height = 1 ;
593+ self . height = 1 ;
594594 }
595595 } ;
596596 }
0 commit comments