fix comment bug

comments not at the beginning of the line are no longer ignored
xkbcommon
Alessandro Mauri 4 years ago
parent 514407015e
commit 5db72c0b43
  1. 4
      hkd.c

@ -634,6 +634,10 @@ void parse_config_file (void)
free(line); free(line);
continue; continue;
} }
for (size_t i = 1; i < linelen; i++) {
if (line[i] == '#')
line[i] = '\0';
}
// TODO: multiline commands, ending with "\\n" // TODO: multiline commands, ending with "\\n"
// TODO: better error checks in order to remove unnecessary // TODO: better error checks in order to remove unnecessary

Loading…
Cancel
Save