From 1a9561c06ba0197b2b307a61443775f9fd11165b Mon Sep 17 00:00:00 2001 From: pommicket Date: Fri, 29 Jul 2022 14:44:17 -0400 Subject: language-specific keyboard shortcuts --- config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config.c') 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 -- cgit v1.2.3