fix writing out of bounds (fixes #198)

This commit is contained in:
Stephan Dilly 2020-07-15 01:14:55 +02:00
parent 6e1fc58406
commit 002a3a8f6f
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- new tags were not picked up in revlog view ([#190](https://github.com/extrawurst/gitui/issues/190))
- tags not shown in commit details popup ([#193](https://github.com/extrawurst/gitui/issues/193))
- min size for relative popups on small terminals ([#179](https://github.com/extrawurst/gitui/issues/179))
- fix crash on resizing terminal to very small width ([#198](https://github.com/extrawurst/gitui/issues/198))
## [0.8.1] - 2020-07-07

View File

@ -157,7 +157,7 @@ impl CommandBar {
let r = Rect::new(
r.width.saturating_sub(MORE_WIDTH),
r.y + r.height.saturating_sub(1),
MORE_WIDTH,
MORE_WIDTH.min(r.width),
1,
);