forked from janek/mostr
1
0
Fork 0

feat(tasks): don't create tasks from typos

This commit is contained in:
xeruf 2024-08-08 13:04:52 +03:00
parent 6b7b6b91a8
commit a3a732879f
1 changed files with 6 additions and 1 deletions

View File

@ -429,7 +429,12 @@ impl Tasks {
0 => {
// No match, new task
self.view.clear();
if arg.len() > 2 {
Some(self.make_task(arg))
} else {
warn!("Not creating task under 3 chars to avoid silly mistakes");
None
}
}
1 => {
// One match, activate