summaryrefslogtreecommitdiffstats
path: root/cmd-find.c
diff options
context:
space:
mode:
authornicm <nicm>2017-04-21 14:01:19 +0000
committernicm <nicm>2017-04-21 14:01:19 +0000
commitbba588752f8085da13edcacd71101055bd617303 (patch)
treeb75e32cccebefb24cda475bed163f613a2994548 /cmd-find.c
parent311dad8c28c8c1a842beb3dbb1757064b9d83b2e (diff)
Store state shared between multiple commands in the queue in a shared
structure.
Diffstat (limited to 'cmd-find.c')
-rw-r--r--cmd-find.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd-find.c b/cmd-find.c
index 877af492..ae1ee835 100644
--- a/cmd-find.c
+++ b/cmd-find.c
@@ -998,8 +998,8 @@ cmd_find_target(struct cmd_find_state *fs, struct cmd_find_state *current,
if (server_check_marked() && (flags & CMD_FIND_DEFAULT_MARKED)) {
fs->current = &marked_pane;
log_debug("%s: current is marked pane", __func__);
- } else if (cmd_find_valid_state(&item->current)) {
- fs->current = &item->current;
+ } else if (cmd_find_valid_state(&item->shared->current)) {
+ fs->current = &item->shared->current;
log_debug("%s: current is from queue", __func__);
} else {
fs->current = current;
@@ -1015,7 +1015,7 @@ cmd_find_target(struct cmd_find_state *fs, struct cmd_find_state *current,
/* Mouse target is a plain = or {mouse}. */
if (strcmp(target, "=") == 0 || strcmp(target, "{mouse}") == 0) {
- m = &item->mouse;
+ m = &item->shared->mouse;
switch (type) {
case CMD_FIND_PANE:
fs->wp = cmd_mouse_pane(m, &fs->s, &fs->wl);