File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
21
21
22
22
### Fixed
23
23
- crash when changing git repo while gitui is open ([ #271 ] ( https://github.com/extrawurst/gitui/issues/271 ) )
24
+ - crash on small terminal size ([ #307 ] ( https://github.com/extrawurst/gitui/issues/307 ) )
24
25
25
26
## [ 0.10.1] - 2020-09-01
26
27
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ pub struct CommandBar {
35
35
expanded : bool ,
36
36
}
37
37
38
- const MORE_WIDTH : u16 = 11 ;
38
+ const MORE_WIDTH : u16 = 9 ;
39
39
40
40
impl CommandBar {
41
41
pub const fn new (
@@ -139,6 +139,10 @@ impl CommandBar {
139
139
}
140
140
141
141
pub fn draw < B : Backend > ( & self , f : & mut Frame < B > , r : Rect ) {
142
+ if r. width < MORE_WIDTH {
143
+ return ;
144
+ }
145
+
142
146
let splitter = Text :: Raw ( Cow :: from ( strings:: cmd_splitter (
143
147
& self . key_config ,
144
148
) ) ) ;
You can’t perform that action at this time.
0 commit comments