diff --git a/src/Buffer.cpp b/src/Buffer.cpp index ae06ff89f4..e6096af747 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -2440,7 +2440,7 @@ bool Buffer::getStatus(FuncRequest const & cmd, FuncStatus & flag) case LFUN_BUFFER_VIEW_CACHE: (d->preview_file_).refresh(); - enable = (d->preview_file_).exists(); + enable = (d->preview_file_).exists() && !(d->preview_file_).isFileEmpty(); break; default: