mirror of
https://github.com/tmux/tmux.git
synced 2026-01-11 16:30:22 +00:00
Fix floating pane redraw bugs. Allow floating panes to be partly out of the window. This required changing xoff and yoff from u_int to int and it required a fair bit of casting for example when xoff is added to sx or comparing px to xoff. It makes sense for px and sx to be u_int since they refers to things which should never be negative.
This commit is contained in:
@@ -2030,8 +2030,8 @@ screen_write_cell(struct screen_write_ctx *ctx, const struct grid_cell *gc)
|
||||
}
|
||||
if (found_self && wp->layout_cell == NULL &&
|
||||
!(wp->flags & PANE_MINIMISED) &&
|
||||
(py >= wp->yoff && py <= wp->yoff + wp->sy) &&
|
||||
(px >= wp->xoff && px <= wp->xoff + wp->sx))
|
||||
((int)py >= wp->yoff && (int)py <= wp->yoff + (int)wp->sy) &&
|
||||
((int)px >= wp->xoff && (int)px <= wp->xoff + (int)wp->sx))
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user