Commit 8cee9a0
committed
layout: avoid panic due to subtract with overflow
This can occur when 2 Press/Release attached to an HoldTap action are
handled between 2 ticks.
```
ERROR panicked at /home/boris/stuff/kb/keyberon/src/layout.rs:319:32:
attempt to subtract with overflow
```1 parent d6f87ad commit 8cee9a0
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
| 298 | + | |
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| |||
0 commit comments