mirror of
https://github.com/tmux/tmux.git
synced 2026-05-30 22:26:18 +00:00
Merge pull request #5042 from daneofmanythings/floating_panes--two-panes-crash
fix(floating_panes): null dereference in `screen_redraw_two_panes` from `screen_redraw_border_arrows`
This commit is contained in:
@@ -974,7 +974,7 @@ screen_redraw_draw_border_arrows(struct screen_redraw_ctx *ctx, u_int i,
|
|||||||
}
|
}
|
||||||
if ((int)j == wp->yoff + 1) {
|
if ((int)j == wp->yoff + 1) {
|
||||||
if (border == SCREEN_REDRAW_OUTSIDE) {
|
if (border == SCREEN_REDRAW_OUTSIDE) {
|
||||||
if (screen_redraw_two_panes(wp->window, 0)) {
|
if (screen_redraw_two_panes(wp->window, &type)) {
|
||||||
if (active == TAILQ_FIRST(&w->panes))
|
if (active == TAILQ_FIRST(&w->panes))
|
||||||
border = SCREEN_REDRAW_BORDER_RIGHT;
|
border = SCREEN_REDRAW_BORDER_RIGHT;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user