Allow panes to be 1 line or column by redrawing instead of using the

scroll region, from Soeren Tempel in GitHub issue 1487.
This commit is contained in:
nicm
2018-09-25 14:27:20 +00:00
parent 7bc6c105b7
commit 7d59f82cf9
3 changed files with 18 additions and 11 deletions

View File

@ -1299,7 +1299,7 @@ window_copy_write_line(struct window_pane *wp, struct screen_write_ctx *ctx,
style_apply(&gc, oo, "mode-style");
gc.flags |= GRID_FLAG_NOPALETTE;
if (py == 0) {
if (py == 0 && s->rupper < s->rlower) {
if (data->searchmark == NULL) {
size = xsnprintf(hdr, sizeof hdr,
"[%u/%u]", data->oy, screen_hsize(data->backing));