fix: Array \'keywordlists[0-1]\' accessed at index -1, which is out of bounds. 🐛

This commit is contained in:
joker2770 2022-10-29 20:42:25 +08:00
parent e7e187b125
commit b2436a8ee8
1 changed files with 3 additions and 0 deletions

View File

@ -175,6 +175,9 @@ static void ColouriseMETAPOSTDoc(
if (currentInterface != 0) {
extraInterface = currentInterface ;
}
else {
extraInterface = 1;
}
WordList &keywords = *keywordlists[0] ;
WordList &keywords2 = *keywordlists[extraInterface-1] ;