summaryrefslogtreecommitdiff
path: root/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'buffer.h')
-rw-r--r--buffer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/buffer.h b/buffer.h
index 119097e..b20c885 100644
--- a/buffer.h
+++ b/buffer.h
@@ -36,6 +36,7 @@ class Buffer{
const bool singleLineMode=false;
TextBlob tb;
+ bool dirty=false;
vector<ScreenLine> screen;
i64 lastWidth=-1,lastHeight=-1; //excluding the gutter
@@ -62,4 +63,5 @@ public:
void show(i64 atx,i64 aty,i64 width,i64 height);
string getText() const;
+ bool isDirty() const;
};