Fix out-of-range move commands
This commit is contained in:
parent
240becd28d
commit
6f1a533b95
4 changed files with 39 additions and 3 deletions
|
|
@ -325,6 +325,13 @@ impl Command {
|
|||
Self::Note(note) => ¬e.desc,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn statements(&self) -> &[Statement] {
|
||||
match self {
|
||||
Self::Task(task) => &task.statements,
|
||||
Self::Note(note) => ¬e.statements,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue