fix: immediately continue when empty line is read

This commit is contained in:
2026-10-13 20:45:29 +02:00
parent c8b5621df1
commit 6672ecac58

View File

@@ -469,6 +469,12 @@ int main(int argc, char** argv) {
line[linelen] = 0;
if (linelen == 0) {
free(line);
line = NULL;
continue;
}
fprintf(historyfile, "%s\n", line);
fflush(historyfile);