--- a/src/SciTEBase.h
+++ b/src/SciTEBase.h
@@ -507,7 +507,7 @@
 
 	PropSetFile propsStatus;	// Not attached to a file but need SetInteger method.
 
-	enum { bufferMax = 100 };
+	enum { bufferMax = IDM_IMPORT - IDM_BUFFER };
 	BufferList buffers;
 
 	// Handle buffers