diff --git a/PowerEditor/src/Parameters.cpp b/PowerEditor/src/Parameters.cpp index f086b0b0..2e38c766 100644 --- a/PowerEditor/src/Parameters.cpp +++ b/PowerEditor/src/Parameters.cpp @@ -1718,7 +1718,7 @@ void NppParameters::feedFileListParameters(TiXmlNode *node) // nbMaxFile value int nbMaxFile; const TCHAR *strVal = (historyRoot->ToElement())->Attribute(TEXT("nbMaxFile"), &nbMaxFile); - if (strVal && (nbMaxFile > 0) && (nbMaxFile <= 50)) + if (strVal && (nbMaxFile >= 0) && (nbMaxFile <= 50)) _nbMaxRecentFile = nbMaxFile; // customLen value