diff options
author | pommicket <pommicket@gmail.com> | 2023-08-05 21:51:08 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-08-05 21:51:08 -0400 |
commit | bcb5589f17f755b965dec49af3232a5a69a8e68f (patch) | |
tree | cefcf8b3c42e56038e1902bfae53fff8508c7b98 /command.c | |
parent | 9e68c6f3dd0b90f908c31c02fedb4b51836d4c8e (diff) |
some cleanup
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -591,13 +591,16 @@ void command_execute_ex(Ted *ted, Command c, const CommandArgument *full_argumen } } break; case CMD_TAB_NEXT: - if (node) node_tab_next(ted, node, argument); + if (node && argument > I32_MIN && argument < I32_MAX) + node_tab_next(ted, node, (i32)argument); break; case CMD_TAB_PREV: - if (node) node_tab_prev(ted, node, argument); + if (node && argument > I32_MIN && argument < I32_MAX) + node_tab_prev(ted, node, (i32)argument); break; case CMD_TAB_SWITCH: - if (node) node_tab_switch(ted, node, argument); + if (node && argument > I32_MIN && argument < I32_MAX) + node_tab_switch(ted, node, (i32)argument); break; case CMD_TAB_MOVE_LEFT: { u16 active_tab = node->active_tab; |