From 2d1eee8b47ac1e0498252b578e6791abbd540e16 Mon Sep 17 00:00:00 2001 From: Christophe Meriaux Date: Tue, 12 Sep 2017 00:09:22 +0200 Subject: [PATCH] fix feedScintKeys when more than two shortcuts are configured Closes #3732, fixes #3720 --- PowerEditor/src/Parameters.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/Parameters.cpp b/PowerEditor/src/Parameters.cpp index d51479cc..2371402a 100644 --- a/PowerEditor/src/Parameters.cpp +++ b/PowerEditor/src/Parameters.cpp @@ -2458,7 +2458,7 @@ void NppParameters::feedScintKeys(TiXmlNode *node) KeyCombo kc; for (TiXmlNode *nextNode = childNode->FirstChildElement(TEXT("NextKey")); nextNode ; - nextNode = childNode->NextSibling(TEXT("NextKey")) ) + nextNode = nextNode->NextSibling(TEXT("NextKey"))) { const TCHAR *str = (nextNode->ToElement())->Attribute(TEXT("Ctrl")); if (!str)