mirror of
https://github.com/tmux/tmux.git
synced 2026-08-24 15:41:36 +00:00
Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master: Store background colour in padding cells and correctly clear adjacent cells when tabs are overwritten, GitHu issue 5441 from Ayman Bagabas. Exit failure on socket failure, from Rayan Salhab. Pessimize compiler flags for screen-redraw.c to prevent tmux from dumping core upon startup on landisk.
This commit is contained in:
10
grid.c
10
grid.c
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: grid.c,v 1.155 2026/07/29 17:42:56 nicm Exp $ */
|
||||
/* $OpenBSD: grid.c,v 1.156 2026/08/03 12:58:53 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||
@@ -682,9 +682,13 @@ grid_set_cell(struct grid *gd, u_int px, u_int py, const struct grid_cell *gc)
|
||||
|
||||
/* Set padding at position. */
|
||||
void
|
||||
grid_set_padding(struct grid *gd, u_int px, u_int py)
|
||||
grid_set_padding(struct grid *gd, u_int px, u_int py, int bg)
|
||||
{
|
||||
grid_set_cell(gd, px, py, &grid_padding_cell);
|
||||
struct grid_cell gc;
|
||||
|
||||
memcpy(&gc, &grid_padding_cell, sizeof gc);
|
||||
gc.bg = bg;
|
||||
grid_set_cell(gd, px, py, &gc);
|
||||
}
|
||||
|
||||
/* Set cells at position. */
|
||||
|
||||
Reference in New Issue
Block a user