mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
wrap note end and post-add advance
This commit is contained in:
parent
35599c6cde
commit
ecbbef22b5
2 changed files with 5 additions and 2 deletions
|
|
@ -127,7 +127,8 @@ impl Handle<Tui> for PhraseEditor<Tui> {
|
|||
},
|
||||
key!(KeyCode::Char('a')) => if self.entered {
|
||||
self.put();
|
||||
self.time_axis.point = self.time_axis.point.map(|time|{time + self.note_len});
|
||||
self.time_axis.point = self.time_axis.point.map(|time|(time + self.note_len)
|
||||
% self.phrase.as_ref().map(|p|p.read().unwrap().length).unwrap_or(1));
|
||||
},
|
||||
key!(KeyCode::Char('s')) => if self.entered {
|
||||
self.put();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue