Skip to content

Commit

Permalink
Fix PositionsProperty with from < 1
Browse files Browse the repository at this point in the history
  • Loading branch information
James Mitchell committed Jan 1, 2018
1 parent b803d4f commit 7fe6c63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/list.gi
Expand Up @@ -1557,8 +1557,8 @@ InstallMethod( PositionProperty,
function( list, func, from )
local i;

if from < 1 then
from:= 1;
if from < 0 then
from:= 0;
fi;
for i in [ from+1 .. Length( list ) ] do
if func( list[i] ) then
Expand Down

0 comments on commit 7fe6c63

Please sign in to comment.