mirror of
https://github.com/tmux/tmux.git
synced 2024-12-14 02:48:47 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
dcc28434f4
8
client.c
8
client.c
@ -354,6 +354,7 @@ client_send_identify(int flags)
|
|||||||
{
|
{
|
||||||
const char *s;
|
const char *s;
|
||||||
char **ss;
|
char **ss;
|
||||||
|
size_t sslen;
|
||||||
int fd;
|
int fd;
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
|
|
||||||
@ -378,8 +379,11 @@ client_send_identify(int flags)
|
|||||||
pid = getpid();
|
pid = getpid();
|
||||||
client_write_one(MSG_IDENTIFY_CLIENTPID, -1, &pid, sizeof pid);
|
client_write_one(MSG_IDENTIFY_CLIENTPID, -1, &pid, sizeof pid);
|
||||||
|
|
||||||
for (ss = environ; *ss != NULL; ss++)
|
for (ss = environ; *ss != NULL; ss++) {
|
||||||
client_write_one(MSG_IDENTIFY_ENVIRON, -1, *ss, strlen(*ss) + 1);
|
sslen = strlen(*ss) + 1;
|
||||||
|
if (sslen <= MAX_IMSGSIZE - IMSG_HEADER_SIZE)
|
||||||
|
client_write_one(MSG_IDENTIFY_ENVIRON, -1, *ss, sslen);
|
||||||
|
}
|
||||||
|
|
||||||
client_write_one(MSG_IDENTIFY_DONE, -1, NULL, 0);
|
client_write_one(MSG_IDENTIFY_DONE, -1, NULL, 0);
|
||||||
|
|
||||||
|
5
input.c
5
input.c
@ -801,10 +801,7 @@ input_reset(struct window_pane *wp)
|
|||||||
{
|
{
|
||||||
struct input_ctx *ictx = wp->ictx;
|
struct input_ctx *ictx = wp->ictx;
|
||||||
|
|
||||||
memcpy(&ictx->cell, &grid_default_cell, sizeof ictx->cell);
|
input_reset_cell(ictx);
|
||||||
memcpy(&ictx->old_cell, &ictx->cell, sizeof ictx->old_cell);
|
|
||||||
ictx->old_cx = 0;
|
|
||||||
ictx->old_cy = 0;
|
|
||||||
|
|
||||||
if (wp->mode == NULL)
|
if (wp->mode == NULL)
|
||||||
screen_write_start(&ictx->ctx, wp, &wp->base);
|
screen_write_start(&ictx->ctx, wp, &wp->base);
|
||||||
|
Loading…
Reference in New Issue
Block a user