fix a small Alt-space issue (stricter checking needed for the case where both the selected area and t->revert were 0)

This commit is contained in:
Sander van Dijk 2006-03-22 22:34:48 +01:00
parent 1e6210396d
commit c0e7213544

View File

@ -78,7 +78,7 @@ select_area(Area *a, char *arg)
if(!strncmp(arg, "toggle", 7)) {
if(i)
i = 0;
else if(t->revert < t->narea)
else if(t->revert > 0 && t->revert < t->narea)
i = t->revert;
else
i = 1;