From 51915b9b0ac0ac9a98e12c1a5781f34f492a4679 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 8 Jul 2021 11:14:53 +0000 Subject: Fix mouse_word format now word-separators has no space and position of menu if too close to the bottom. --- cmd-display-menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd-display-menu.c') diff --git a/cmd-display-menu.c b/cmd-display-menu.c index f2100bdb..a68b9fc4 100644 --- a/cmd-display-menu.c +++ b/cmd-display-menu.c @@ -176,7 +176,7 @@ cmd_display_menu_get_position(struct client *tc, struct cmdq_item *item, format_add(ft, "popup_mouse_centre_y", "%ld", n); n = (long)event->m.y + h; if (n + h >= tty->sy) - format_add(ft, "popup_mouse_top", "%u", tty->sy - h); + format_add(ft, "popup_mouse_top", "%u", tty->sy - 1); else format_add(ft, "popup_mouse_top", "%ld", n); n = event->m.y - h; -- cgit