diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-04-13 13:42:36 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-04-13 13:42:36 +0000 |
commit | f332e1470fe1588871275b0439ceffa0f7bddf66 (patch) | |
tree | 72e3c46c6b0dc6171677e7ed59e5124346bc8f51 /usr.bin/tmux/format.c | |
parent | bd8db6c3db9af98dc4b1bcc549263f53e7734bf9 (diff) |
Store a key event not a mouse event in the shared data.
Diffstat (limited to 'usr.bin/tmux/format.c')
-rw-r--r-- | usr.bin/tmux/format.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/format.c b/usr.bin/tmux/format.c index 37dc1e39cf1..dd4b8018850 100644 --- a/usr.bin/tmux/format.c +++ b/usr.bin/tmux/format.c @@ -1,4 +1,4 @@ -/* $OpenBSD: format.c,v 1.237 2020/04/13 10:59:58 nicm Exp $ */ +/* $OpenBSD: format.c,v 1.238 2020/04/13 13:42:35 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -1133,7 +1133,7 @@ format_create_add_item(struct format_tree *ft, struct cmdq_item *item) if (shared == NULL) return; - m = &shared->mouse; + m = &shared->event.m; if (m->valid && ((wp = cmd_mouse_pane(m, NULL, NULL)) != NULL)) { format_add(ft, "mouse_pane", "%%%u", wp->id); if (cmd_mouse_at(wp, m, &x, &y, 0) == 0) { |