summaryrefslogtreecommitdiff
path: root/syntax.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-07-29 14:44:17 -0400
committerpommicket <pommicket@gmail.com>2022-07-29 14:44:17 -0400
commit1a9561c06ba0197b2b307a61443775f9fd11165b (patch)
tree2297afc02e5a4eb7f65a8248db3906284c144737 /syntax.c
parentab65fe136f7a8739b78aaa4801a9fb761a301417 (diff)
language-specific keyboard shortcuts
Diffstat (limited to 'syntax.c')
-rw-r--r--syntax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/syntax.c b/syntax.c
index bef3ea9..97d0554 100644
--- a/syntax.c
+++ b/syntax.c
@@ -7,7 +7,7 @@
// returns the language this string is referring to, or LANG_NONE if it's invalid.
Language language_from_str(char const *str) {
for (int i = 0; i < LANG_COUNT; ++i) {
- if (streq(language_names[i].name, str))
+ if (strcmp_case_insensitive(language_names[i].name, str) == 0)
return language_names[i].lang;
}
return LANG_NONE;