mirror of
https://github.com/tmux/tmux.git
synced 2026-10-15 16:04:34 +00:00
Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master: Tidy up APC function.
This commit is contained in:
10
input.c
10
input.c
@@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: input.c,v 1.276 2026/10/13 10:21:58 nicm Exp $ */
|
/* $OpenBSD: input.c,v 1.277 2026/10/14 16:23:43 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
|
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||||
@@ -2797,15 +2797,17 @@ input_exit_apc(struct input_ctx *ictx)
|
|||||||
{
|
{
|
||||||
struct screen_write_ctx *sctx = &ictx->ctx;
|
struct screen_write_ctx *sctx = &ictx->ctx;
|
||||||
struct window_pane *wp = ictx->wp;
|
struct window_pane *wp = ictx->wp;
|
||||||
|
u_char *buf = ictx->input_buf;
|
||||||
|
size_t len = ictx->input_len;
|
||||||
|
|
||||||
if (ictx->flags & INPUT_DISCARD)
|
if (ictx->flags & INPUT_DISCARD)
|
||||||
return;
|
return;
|
||||||
log_debug("%s: \"%s\"", __func__, ictx->input_buf);
|
log_debug("%s: \"%s\" (size %zu)", __func__, buf, len);
|
||||||
|
|
||||||
if (wp != NULL &&
|
if (wp != NULL &&
|
||||||
options_get_number(wp->options, "allow-set-title") &&
|
options_get_number(wp->options, "allow-set-title") &&
|
||||||
screen_set_title(sctx->s, ictx->input_buf, 1)) {
|
screen_set_title(sctx->s, buf, 1)) {
|
||||||
input_fire_pane_title_changed(wp, ictx->input_buf);
|
input_fire_pane_title_changed(wp, buf);
|
||||||
server_redraw_window_borders(wp->window);
|
server_redraw_window_borders(wp->window);
|
||||||
server_status_window(wp->window);
|
server_status_window(wp->window);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user