Merge remote-tracking branch 'adafruit/8.0.x' into merge-8.0.x-to-main

This commit is contained in:
Dan Halbert 2023-03-29 14:52:49 -04:00
commit 81482a6f66

View File

@ -72,7 +72,7 @@ STATIC void close_file(file_arg *active_file) {
// nothing
}
STATIC bool is_eof(file_arg *active_file) {
return f_eof(active_file);
return f_eof(active_file) || f_error(active_file);
}
// Return 0 if there is no next character (EOF).