Skip to content

Commit 002a3a8

Browse files
author
Stephan Dilly
committed
fix writing out of bounds (fixes #198)
1 parent 6e1fc58 commit 002a3a8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
- new tags were not picked up in revlog view ([#190](https://github.com/extrawurst/gitui/issues/190))
1818
- tags not shown in commit details popup ([#193](https://github.com/extrawurst/gitui/issues/193))
1919
- min size for relative popups on small terminals ([#179](https://github.com/extrawurst/gitui/issues/179))
20+
- fix crash on resizing terminal to very small width ([#198](https://github.com/extrawurst/gitui/issues/198))
2021

2122
## [0.8.1] - 2020-07-07
2223

src/cmdbar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ impl CommandBar {
157157
let r = Rect::new(
158158
r.width.saturating_sub(MORE_WIDTH),
159159
r.y + r.height.saturating_sub(1),
160-
MORE_WIDTH,
160+
MORE_WIDTH.min(r.width),
161161
1,
162162
);
163163

0 commit comments

Comments
 (0)