Fix two consecutive matches

This commit is contained in:
Scott Shawcroft 2022-05-25 15:54:26 -07:00
parent 22cada10fa
commit ef3c56816a
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA

View File

@ -162,6 +162,10 @@ STATIC mp_int_t read_value(FIL *active_file, char *value, size_t value_len) {
}
// Unquoted values are ended by a newline or comment.
if (!quoted && (character == '\n' || character == '#')) {
if (character == '\n') {
// Rewind one so the next_line can find the \n.
f_lseek(active_file, f_tell(active_file) - 1);
}
break;
}
if (!quoted && unichar_isspace(character)) {