From d2e202fc0d40871280014387d7a6f64f21bb1c53 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Mon, 1 Dec 2025 18:05:03 -0800 Subject: [PATCH] fix build --- Buffer.cc | 3 +-- Frame.cc | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Buffer.cc b/Buffer.cc index 9cdde2e..b74d557 100644 --- a/Buffer.cc +++ b/Buffer.cc @@ -276,7 +276,7 @@ Buffer::MarkDirty() bool Buffer::IsDirty() { - return this->dirty; + return this->status == FileStatus::FileStatusOK && this->dirty; } @@ -360,4 +360,3 @@ Buffer::clearContents() this->contents.clear(); } - diff --git a/Frame.cc b/Frame.cc index 0adb7f4..2a1c9b7 100644 --- a/Frame.cc +++ b/Frame.cc @@ -60,5 +60,5 @@ Frame::Refresh() Buffer::FileStatus Frame::Flush() { - return this->bmap[this->activeBuffer]->Flush(); + return this->bmap[this->activeBuffer]->Flush(nullptr); }