mirror of
https://github.com/tmux/tmux.git
synced 2025-12-18 00:02:54 -05:00
Possible fixes leak
This commit is contained in:
parent
a37db55689
commit
b5f9293014
@ -262,8 +262,8 @@ cmd_new_floating_window_exec(struct cmd *self, struct cmdq_item *item)
|
||||
return (CMD_RETURN_ERROR);
|
||||
}
|
||||
}
|
||||
sc.xoff = 10;
|
||||
sc.yoff = 10;
|
||||
sc.xoff = 20;
|
||||
sc.yoff = 20;
|
||||
sc.sx = sx;
|
||||
sc.sy = sy;
|
||||
|
||||
|
||||
@ -1797,10 +1797,14 @@ screen_write_collect_scroll(struct screen_write_ctx *ctx, u_int bg)
|
||||
TAILQ_REMOVE(&cl_src->items, ci, entry);
|
||||
}
|
||||
}
|
||||
if (! TAILQ_EMPTY(&cl_src->items)) {
|
||||
screen_write_collect_clear(ctx, y+1, 1);
|
||||
TAILQ_INIT(&cl_src->items);
|
||||
}
|
||||
ctx->s->write_list[y].data = cl_src->data;
|
||||
}
|
||||
s->write_list[s->rlower].data = saved;
|
||||
|
||||
return;
|
||||
/* Also worked without this clear, is this needed? */
|
||||
ci = screen_write_get_citem();
|
||||
ci->x = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user