Changeset f041595 for window.c


Ignore:
Timestamp:
Jun 2, 2010, 11:57:44 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
9bd51b8
Parents:
d15ea5f
git-author:
David Benjamin <davidben@mit.edu> (06/02/10 23:55:59)
git-committer:
David Benjamin <davidben@mit.edu> (06/02/10 23:57:44)
Message:
Don't attempt to create windows with invalid dimensions

newwin will interpret height or width of 0 to be something special, so
let's filter them out.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • window.c

    rd15ea5f rf041595  
    302302      || !w->shown
    303303      || w->win != NULL)
     304    return;
     305  if (w->nlines <= 0 || w->ncols <= 0)
    304306    return;
    305307  _owl_window_create_curses(w);
Note: See TracChangeset for help on using the changeset viewer.