feat(tasks): don't create tasks from typos
This commit is contained in:
parent
6b7b6b91a8
commit
a3a732879f
|
@ -429,7 +429,12 @@ impl Tasks {
|
|||
0 => {
|
||||
// No match, new task
|
||||
self.view.clear();
|
||||
Some(self.make_task(arg))
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue