mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 18:38:48 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
dafd6f462f
@ -1086,7 +1086,8 @@ cmd_parse_from_arguments(struct args_value *values, u_int count,
|
|||||||
arg->type = CMD_PARSE_STRING;
|
arg->type = CMD_PARSE_STRING;
|
||||||
arg->string = copy;
|
arg->string = copy;
|
||||||
TAILQ_INSERT_TAIL(&cmd->arguments, arg, entry);
|
TAILQ_INSERT_TAIL(&cmd->arguments, arg, entry);
|
||||||
}
|
} else
|
||||||
|
free(copy);
|
||||||
} else if (values[i].type == ARGS_COMMANDS) {
|
} else if (values[i].type == ARGS_COMMANDS) {
|
||||||
arg = xcalloc(1, sizeof *arg);
|
arg = xcalloc(1, sizeof *arg);
|
||||||
arg->type = CMD_PARSE_PARSED_COMMANDS;
|
arg->type = CMD_PARSE_PARSED_COMMANDS;
|
||||||
|
@ -1505,8 +1505,10 @@ screen_write_fullredraw(struct screen_write_ctx *ctx)
|
|||||||
|
|
||||||
screen_write_collect_flush(ctx, 0, __func__);
|
screen_write_collect_flush(ctx, 0, __func__);
|
||||||
|
|
||||||
|
if (ttyctx.redraw_cb != NULL) {
|
||||||
screen_write_initctx(ctx, &ttyctx, 1);
|
screen_write_initctx(ctx, &ttyctx, 1);
|
||||||
ttyctx.redraw_cb(&ttyctx);
|
ttyctx.redraw_cb(&ttyctx);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Trim collected items. */
|
/* Trim collected items. */
|
||||||
@ -2127,8 +2129,10 @@ screen_write_alternateon(struct screen_write_ctx *ctx, struct grid_cell *gc,
|
|||||||
screen_write_collect_flush(ctx, 0, __func__);
|
screen_write_collect_flush(ctx, 0, __func__);
|
||||||
screen_alternate_on(ctx->s, gc, cursor);
|
screen_alternate_on(ctx->s, gc, cursor);
|
||||||
|
|
||||||
|
if (ttyctx.redraw_cb != NULL) {
|
||||||
screen_write_initctx(ctx, &ttyctx, 1);
|
screen_write_initctx(ctx, &ttyctx, 1);
|
||||||
ttyctx.redraw_cb(&ttyctx);
|
ttyctx.redraw_cb(&ttyctx);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Turn alternate screen off. */
|
/* Turn alternate screen off. */
|
||||||
@ -2145,6 +2149,8 @@ screen_write_alternateoff(struct screen_write_ctx *ctx, struct grid_cell *gc,
|
|||||||
screen_write_collect_flush(ctx, 0, __func__);
|
screen_write_collect_flush(ctx, 0, __func__);
|
||||||
screen_alternate_off(ctx->s, gc, cursor);
|
screen_alternate_off(ctx->s, gc, cursor);
|
||||||
|
|
||||||
|
if (ttyctx.redraw_cb != NULL) {
|
||||||
screen_write_initctx(ctx, &ttyctx, 1);
|
screen_write_initctx(ctx, &ttyctx, 1);
|
||||||
ttyctx.redraw_cb(&ttyctx);
|
ttyctx.redraw_cb(&ttyctx);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user