diff options
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -411,7 +411,7 @@ void command_execute(Ted *ted, Command c, i64 argument) { case CMD_SET_LANGUAGE: if (buffer && !buffer->is_line_buffer) { - if (argument < 0 || argument >= LANG_COUNT) + if (argument < 0 || argument >= LANG_COUNT_MAX) buffer->manual_language = -1; else buffer->manual_language = (i16)(argument + 1); |