diff options
Diffstat (limited to 'src/LexGAP.cxx')
| -rw-r--r-- | src/LexGAP.cxx | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/LexGAP.cxx b/src/LexGAP.cxx index 1dba29d7f..6878ab76b 100644 --- a/src/LexGAP.cxx +++ b/src/LexGAP.cxx @@ -211,7 +211,7 @@ static void FoldGAPDoc( unsigned int startPos, int length, int initStyle,   Word  		styleNext = styler.StyleAt(i + 1);  		bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); -		if (stylePrev == SCE_GAP_DEFAULT && style == SCE_GAP_KEYWORD) { +		if (stylePrev != SCE_GAP_KEYWORD && style == SCE_GAP_KEYWORD) {  			// Store last word start point.  			lastStart = i;  		} | 
