Bugfix: config parser was skipping the last token at eof if not followed by newline.

master
Albert Graef 2018-08-30 17:04:55 +02:00
parent c509e46926
commit b2ecfbff26
1 changed files with 1 additions and 0 deletions

View File

@ -1851,6 +1851,7 @@ read_config_file(void)
case ' ':
case '\t':
case '\n':
case '\0': // no newline at eof
if (!strcmp(tok, "RELEASE"))
add_keystroke(tok, PRESS_RELEASE);
else if (!strcmp(tok, "SHIFT"))