Add a workaround for #3066566 to prevent Geany from crashing during loading of a LaTeX-file containing linebreaks inside headings.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5540 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Frank Lanitz 2011-02-06 18:25:10 +00:00
parent bf4067f910
commit b74e46587d
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2011-02-06 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* tagmanager/latex.c:
Add a workaround for #3066566 to prevent Geany from crashing during
loading of a LaTeX-file containing linebreaks inside headings.
2011-02-06 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* tagmanager/php.c:

View File

@ -83,9 +83,13 @@ static void createTag(int flags, TeXKind kind, const char * l)
if (*l == '[')
{
while (*l != ']')
{
if (*l == '\0')
goto no_tag;
l++;
}
l++; /* skip the closing square bracket */
}
}
if (*l != '{')
goto no_tag;
l++;
@ -240,4 +244,3 @@ extern parserDefinition* LaTeXParser (void)
def->parser = findTeXTags;
return def;
}