wrap note end and post-add advance

This commit is contained in:
🪞👃🪞 2024-10-23 20:50:26 +03:00
parent 35599c6cde
commit ecbbef22b5
2 changed files with 5 additions and 2 deletions

View file

@ -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();