diff options
Diffstat (limited to 'usr.bin/indent')
-rw-r--r-- | usr.bin/indent/indent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/indent/indent.c b/usr.bin/indent/indent.c index c790720..447c8e2 100644 --- a/usr.bin/indent/indent.c +++ b/usr.bin/indent/indent.c @@ -997,7 +997,7 @@ check_type: if (buf_ptr >= buf_end) fill_buffer(); } - while (*buf_ptr != '\n' || in_comment) { + while (*buf_ptr != '\n' || (in_comment && !had_eof)) { CHECK_SIZE_LAB; *e_lab = *buf_ptr++; if (buf_ptr >= buf_end) |