mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
fix another small screen crash
This commit is contained in:
parent
61c84ac030
commit
9df59a0af0
1 changed files with 6 additions and 0 deletions
|
|
@ -239,6 +239,9 @@ impl Sequencer {
|
|||
}
|
||||
|
||||
fn horizontal_notes (&self, buf: &mut Buffer, area: Rect) -> Usually<Rect> {
|
||||
if area.height < 2 {
|
||||
return Ok(area)
|
||||
}
|
||||
let area = Rect {
|
||||
x: area.x + Self::H_KEYS_OFFSET,
|
||||
y: area.y + 1,
|
||||
|
|
@ -258,6 +261,9 @@ impl Sequencer {
|
|||
}
|
||||
|
||||
fn horizontal_keys (&self, buf: &mut Buffer, area: Rect) -> Usually<Rect> {
|
||||
if area.height < 2 {
|
||||
return Ok(area)
|
||||
}
|
||||
let area = Rect {
|
||||
x: area.x,
|
||||
y: area.y + 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue