fix feedScintKeys when more than two shortcuts are configured

Closes #3732, fixes #3720
This commit is contained in:
Christophe Meriaux 2017-09-12 00:09:22 +02:00 committed by Don HO
parent 505d2452d3
commit 2d1eee8b47

View File

@ -2458,7 +2458,7 @@ void NppParameters::feedScintKeys(TiXmlNode *node)
KeyCombo kc; KeyCombo kc;
for (TiXmlNode *nextNode = childNode->FirstChildElement(TEXT("NextKey")); for (TiXmlNode *nextNode = childNode->FirstChildElement(TEXT("NextKey"));
nextNode ; nextNode ;
nextNode = childNode->NextSibling(TEXT("NextKey")) ) nextNode = nextNode->NextSibling(TEXT("NextKey")))
{ {
const TCHAR *str = (nextNode->ToElement())->Attribute(TEXT("Ctrl")); const TCHAR *str = (nextNode->ToElement())->Attribute(TEXT("Ctrl"));
if (!str) if (!str)