mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +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> {
|
fn horizontal_notes (&self, buf: &mut Buffer, area: Rect) -> Usually<Rect> {
|
||||||
|
if area.height < 2 {
|
||||||
|
return Ok(area)
|
||||||
|
}
|
||||||
let area = Rect {
|
let area = Rect {
|
||||||
x: area.x + Self::H_KEYS_OFFSET,
|
x: area.x + Self::H_KEYS_OFFSET,
|
||||||
y: area.y + 1,
|
y: area.y + 1,
|
||||||
|
|
@ -258,6 +261,9 @@ impl Sequencer {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn horizontal_keys (&self, buf: &mut Buffer, area: Rect) -> Usually<Rect> {
|
fn horizontal_keys (&self, buf: &mut Buffer, area: Rect) -> Usually<Rect> {
|
||||||
|
if area.height < 2 {
|
||||||
|
return Ok(area)
|
||||||
|
}
|
||||||
let area = Rect {
|
let area = Rect {
|
||||||
x: area.x,
|
x: area.x,
|
||||||
y: area.y + 1,
|
y: area.y + 1,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue