summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm>2017-06-06 15:07:35 +0000
committernicm <nicm>2017-06-06 15:07:35 +0000
commitbbc35b0b19ba763c7e32185c4c12233c041b26de (patch)
tree201dc4136c41c1fee07e3d479bf4ce548859511f
parentd7280917da5bfdf1811772c5f44fe1dd341c1742 (diff)
Do not pass a state into commands when fired on individual items in tree
mode, rely on the %% target substitution in the command for the chosen pane and leave the default target as the current pane (where the mode is). Otherwise, joinp and similar end up with -t and -s the same. Reported by Jacob Niehus in GitHub issue 960.
-rw-r--r--window-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window-tree.c b/window-tree.c
index 36a19e48..363975e3 100644
--- a/window-tree.c
+++ b/window-tree.c
@@ -699,7 +699,7 @@ window_tree_key(struct window_pane *wp, struct client *c,
name = window_tree_get_target(item, &fs);
window_pane_reset_mode(wp);
if (name != NULL)
- mode_tree_run_command(c, &fs, command, name);
+ mode_tree_run_command(c, NULL, command, name);
free(name);
free(command);
return;