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:
parent
bf4067f910
commit
b74e46587d
@ -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>
|
2011-02-06 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
||||||
|
|
||||||
* tagmanager/php.c:
|
* tagmanager/php.c:
|
||||||
|
|||||||
@ -83,7 +83,11 @@ static void createTag(int flags, TeXKind kind, const char * l)
|
|||||||
if (*l == '[')
|
if (*l == '[')
|
||||||
{
|
{
|
||||||
while (*l != ']')
|
while (*l != ']')
|
||||||
|
{
|
||||||
|
if (*l == '\0')
|
||||||
|
goto no_tag;
|
||||||
l++;
|
l++;
|
||||||
|
}
|
||||||
l++; /* skip the closing square bracket */
|
l++; /* skip the closing square bracket */
|
||||||
}
|
}
|
||||||
if (*l != '{')
|
if (*l != '{')
|
||||||
@ -240,4 +244,3 @@ extern parserDefinition* LaTeXParser (void)
|
|||||||
def->parser = findTeXTags;
|
def->parser = findTeXTags;
|
||||||
return def;
|
return def;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user