fix: correct a couple of integer overflow errors

This commit is contained in:
CJ van den Berg 2024-08-07 20:32:25 +02:00
parent ed8a1276da
commit 476baf768e
3 changed files with 5 additions and 5 deletions

View file

@ -174,7 +174,7 @@ fn handle_menu_action(menu: **Menu.State(*Self), button: *Button.State(*Menu.Sta
entry.end_line + 1,
entry.end_pos + 2,
entry.begin_line,
entry.begin_pos + 1,
if (entry.begin_pos == 0) 0 else entry.begin_pos + 1,
entry.end_line,
entry.end_pos + 1,
},