fixed crash when typing "\" as last character in a bash file (patch from Scintilla ML)
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@265 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
3ee31cd9a5
commit
40bfefcee9
@ -258,7 +258,8 @@ static void ColouriseBashDoc(unsigned int startPos, int length, int initStyle,
|
||||
|
||||
if (state == SCE_SH_DEFAULT) {
|
||||
if (ch == '\\') { // escaped character
|
||||
i++;
|
||||
if (i < lengthDoc - 1)
|
||||
i++;
|
||||
ch = chNext;
|
||||
chNext = chNext2;
|
||||
styler.ColourTo(i, SCE_SH_IDENTIFIER);
|
||||
|
Loading…
x
Reference in New Issue
Block a user