summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-03-01 17:28:30 -0500
committerpommicket <pommicket@gmail.com>2023-03-01 17:28:30 -0500
commit6d9ebc8332b6cc54ada4bc17689e4de4040892c6 (patch)
tree3d8611141759be315996b537e8b533a16aa472a5 /command.c
parent52ba910a48a4dd2abb798c3c998ecb0e006c1895 (diff)
start dynamic lbanguage registaration
Diffstat (limited to 'command.c')
-rw-r--r--command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/command.c b/command.c
index 36fd2d1..775d6bc 100644
--- a/command.c
+++ b/command.c
@@ -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);