[zoom] fix crash fix.

Sorry to anyone who lost character selection this morning...
This commit is contained in:
Andy Williams 2016-01-31 15:01:00 +00:00
parent 459cf7383d
commit fbf61bf815
1 changed files with 1 additions and 1 deletions

View File

@ -787,7 +787,7 @@ termpty_row_length(Termpty *ty, int y)
ssize_t wret;
Termcell *cells = termpty_cellrow_get(ty, y, &wret);
if (cells)
if (!cells)
return 0;
if (y >= 0)
return termpty_line_length(cells, ty->w);