Closes issue #175.

This commit is contained in:
Kris Maglione 2010-05-17 12:35:12 -04:00
parent 38ae2bcc17
commit 2f68695947
1 changed files with 1 additions and 1 deletions

View File

@ -374,7 +374,7 @@ strarea(View *v, ulong scrn, const char *s) {
}
if(!strcmp(s, "~"))
return v->floating;
if(!getlong(s, &i) || i == 0)
if(scrn < 0 || !getlong(s, &i) || i == 0)
return nil;
if(i > 0) {