From 9abeff7f0b8fcfab96af299a071de6483bf02a8f Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 16 Mar 2020 08:23:24 +0000 Subject: FIx type for %u, from Thomas Adam. --- window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/window.c b/window.c index a4b452eb..ab1d9217 100644 --- a/window.c +++ b/window.c @@ -425,8 +425,8 @@ window_resize(struct window *w, u_int sx, u_int sy, int xpixel, int ypixel) ypixel = DEFAULT_YPIXEL; log_debug("%s: @%u resize %ux%u (%ux%u)", __func__, w->id, sx, sy, - xpixel == -1 ? w->xpixel : xpixel, - ypixel == -1 ? w->ypixel : ypixel); + xpixel == -1 ? w->xpixel : (u_int)xpixel, + ypixel == -1 ? w->ypixel : (u_int)ypixel); w->sx = sx; w->sy = sy; if (xpixel != -1) -- cgit From 7815b30c7d15cc5a728687de3a54f032c77cb4e3 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 16 Mar 2020 09:12:44 +0000 Subject: Terminate the output buffer for control mode output - it is now used as a string. GitHub issue 2114. --- control-notify.c | 1 + 1 file changed, 1 insertion(+) diff --git a/control-notify.c b/control-notify.c index babfcf2d..a513c147 100644 --- a/control-notify.c +++ b/control-notify.c @@ -54,6 +54,7 @@ control_notify_input(struct client *c, struct window_pane *wp, else evbuffer_add_printf(message, "%c", buf[i]); } + evbuffer_add(message, "", 1); control_write(c, "%s", EVBUFFER_DATA(message)); evbuffer_free(message); } -- cgit From 7cae4e8e89a98329843e3df8b3644f501288256b Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 16 Mar 2020 09:18:47 +0000 Subject: Turn off mouse mode 1003 as well as the rest when exiting. --- tty.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tty.c b/tty.c index 3bab556d..8efe57b5 100644 --- a/tty.c +++ b/tty.c @@ -330,8 +330,10 @@ tty_start_tty(struct tty *tty) log_debug("%s: using UTF-8 for ACS", c->name); tty_putcode(tty, TTYC_CNORM); - if (tty_term_has(tty->term, TTYC_KMOUS)) - tty_puts(tty, "\033[?1000l\033[?1002l\033[?1006l\033[?1005l"); + if (tty_term_has(tty->term, TTYC_KMOUS)) { + tty_puts(tty, "\033[?1000l\033[?1002l\033[?1003l"); + tty_puts(tty, "\033[?1006l\033[?1005l"); + } if (tty_term_flag(tty->term, TTYC_XT)) { if (options_get_number(global_options, "focus-events")) { @@ -404,8 +406,10 @@ tty_stop_tty(struct tty *tty) tty_raw(tty, tty_term_string(tty->term, TTYC_CR)); tty_raw(tty, tty_term_string(tty->term, TTYC_CNORM)); - if (tty_term_has(tty->term, TTYC_KMOUS)) - tty_raw(tty, "\033[?1000l\033[?1002l\033[?1006l\033[?1005l"); + if (tty_term_has(tty->term, TTYC_KMOUS)) { + tty_raw(tty, "\033[?1000l\033[?1002l\033[?1003l"); + tty_raw(tty, "\033[?1006l\033[?1005l"); + } if (tty_term_flag(tty->term, TTYC_XT)) { if (tty->flags & TTY_FOCUS) { -- cgit