Merge branch 'obsd-master'

pull/2359/head
Thomas Adam 2020-07-15 12:01:19 +01:00
commit c973801f92
1 changed files with 5 additions and 0 deletions

View File

@ -2601,6 +2601,11 @@ window_copy_cellstring(const struct grid_line *gl, u_int px, size_t *size,
}
gce = &gl->celldata[px];
if (gce->flags & GRID_FLAG_PADDING) {
*size = 0;
*allocated = 0;
return (NULL);
}
if (~gce->flags & GRID_FLAG_EXTENDED) {
*size = 1;
*allocated = 0;