Don't crash if last line is not indented
parent
c2459f2077
commit
1de364bbd1
|
@ -468,9 +468,12 @@ parse_lines (char **lines,
|
|||
}
|
||||
|
||||
g_assert (item != NULL);
|
||||
|
||||
start = content_start;
|
||||
|
||||
if (line_is_indented (lines[start]) && !line_is_blank (lines[start]))
|
||||
if (start < n_lines &&
|
||||
line_is_indented (lines[start]) &&
|
||||
!line_is_blank (lines[start]))
|
||||
{
|
||||
while (start < n_lines)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue