Skip to content

Commit

Permalink
Allow pos 0 to be in a pos table considered "e�pmpty".
Browse files Browse the repository at this point in the history
This is a quick hack fix for the forw-forever in empty file bug.
  • Loading branch information
gwsw committed Oct 27, 2012
1 parent 4c43197 commit 1ab6b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion position.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ empty_lines(s, e)
register int i;

for (i = s; i <= e; i++)
if (table[i] != NULL_POSITION)
if (table[i] != NULL_POSITION && table[i] != 0)
return (0);
return (1);
}
Expand Down

0 comments on commit 1ab6b8b

Please sign in to comment.