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.
-/* $OpenBSD: window-tree.c,v 1.1 2017/05/30 21:44:59 nicm Exp $ */
+/* $OpenBSD: window-tree.c,v 1.2 2017/06/06 15:07:35 nicm Exp $ */
/*
* Copyright (c) 2017 Nicholas Marriott <nicholas.marriott@gmail.com>
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;