summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/format.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2020-04-13 14:04:26 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2020-04-13 14:04:26 +0000
commitb38a262a57ad0941a41ed3626664891772f6444e (patch)
tree6cda239574af188610e7a10cc59dc1545b001ee3 /usr.bin/tmux/format.c
parentf332e1470fe1588871275b0439ceffa0f7bddf66 (diff)
Rename cmdq_shared to cmdq_state which will better reflect what it is
(going to be) used for.
Diffstat (limited to 'usr.bin/tmux/format.c')
-rw-r--r--usr.bin/tmux/format.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tmux/format.c b/usr.bin/tmux/format.c
index dd4b8018850..5e99bd57e43 100644
--- a/usr.bin/tmux/format.c
+++ b/usr.bin/tmux/format.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: format.c,v 1.238 2020/04/13 13:42:35 nicm Exp $ */
+/* $OpenBSD: format.c,v 1.239 2020/04/13 14:04:25 nicm Exp $ */
/*
* Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1124,16 +1124,16 @@ format_merge(struct format_tree *ft, struct format_tree *from)
static void
format_create_add_item(struct format_tree *ft, struct cmdq_item *item)
{
- struct cmdq_shared *shared = cmdq_get_shared(item);
+ struct cmdq_state *state = cmdq_get_state(item);
struct mouse_event *m;
struct window_pane *wp;
u_int x, y;
cmdq_merge_formats(item, ft);
- if (shared == NULL)
+ if (state == NULL)
return;
- m = &shared->event.m;
+ m = &state->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) {