--- a/src/SciTEBase.h
+++ b/src/SciTEBase.h
@@ -94,6 +94,7 @@
 	sptr_t doc;
 	bool isDirty;
 	bool isReadOnly;
+	bool failedSave;
 	bool useMonoFont;
 	enum { empty, reading, readAll, open } lifeState;
 	UniMode unicodeMode;
@@ -108,7 +109,7 @@
 	PropSetFile props;
 	enum FutureDo { fdNone=0, fdFinishSave=1 } futureDo;
 	Buffer() :
-			RecentFile(), doc(0), isDirty(false), isReadOnly(false), useMonoFont(false), lifeState(empty),
+			RecentFile(), doc(0), isDirty(false), isReadOnly(false), failedSave(false), useMonoFont(false), lifeState(empty),
 			unicodeMode(uni8Bit), fileModTime(0), fileModLastAsk(0), documentModTime(0),
 			findMarks(fmNone), pFileWorker(0), futureDo(fdNone) {}
 
@@ -116,6 +117,7 @@
 		RecentFile::Init();
 		isDirty = false;
 		isReadOnly = false;
+		failedSave = false;
 		useMonoFont = false;
 		lifeState = empty;
 		unicodeMode = uni8Bit;
@@ -134,6 +136,7 @@
 		fileModTime = ModifiedTime();
 		fileModLastAsk = fileModTime;
 		documentModTime = fileModTime;
+		failedSave = false;
 	}
 
 	void DocumentModified();