Fix segfault (oops).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1387 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
a81ab1c4cf
commit
9c771f709c
@ -385,7 +385,7 @@ static gboolean current_function_changed(gint cur_idx, gint cur_line, gint fold_
|
||||
gboolean ret;
|
||||
|
||||
// check if the cached line and file index have changed since last time:
|
||||
if (cur_idx != old_idx)
|
||||
if (cur_idx < 0 || cur_idx != old_idx)
|
||||
ret = TRUE;
|
||||
else
|
||||
if (cur_line == old_line)
|
||||
|
Loading…
x
Reference in New Issue
Block a user