summaryrefslogtreecommitdiff
path: root/config.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 /config.c
parentab65fe136f7a8739b78aaa4801a9fb761a301417 (diff)
language-specific keyboard shortcuts
Diffstat (limited to 'config.c')
-rw-r--r--config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.c b/config.c
index aa09444..3cd64de 100644
--- a/config.c
+++ b/config.c
@@ -371,6 +371,7 @@ void config_read(Ted *ted, char const *filename, int pass) {
switch (section) {
case SECTION_CORE:
case SECTION_COLORS:
+ case SECTION_KEYBOARD:
break;
default:
config_err(cfg, "%s settings cannot be configured for individual languages.",
@@ -431,7 +432,7 @@ void config_read(Ted *ted, char const *filename, int pass) {
case SECTION_KEYBOARD: {
// lines like Ctrl+Down = 10 :down
u32 key_combo = config_parse_key_combo(cfg, key);
- KeyAction *action = &ted->key_actions[key_combo];
+ KeyAction *action = &settings->key_actions[key_combo];
llong argument = 1;
if (isdigit(*value)) {
// read the argument