Minor: flush stdout on error

This commit is contained in:
Nikita Ivanov 2022-06-28 22:02:57 +05:00
parent 8e3dbc40d7
commit 6a8c7d18bf
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133

View File

@ -10,6 +10,7 @@ void print_error(const char *error_msg)
/* We print errors to stdout because lf file manager
* doesn't print stderr in the preview window. */
fprintf(stdout, "%s: %s\n", program, error_msg);
fflush(stdout);
}
void print_errorf(const char *format, ...)