summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-select-pane.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-12-15 00:00:01 +0000
committernicm <nicm@openbsd.org>2015-12-15 00:00:01 +0000
commit7519eda3a2d74d39e8eb8c0689e3da0f2bc3bae0 (patch)
treef8be89ec727706f58d3f1cbb3ef059c39acdf6d1 /usr.bin/tmux/cmd-select-pane.c
parentUse cmd_find_clear_state instead of an extra function doing the same. (diff)
downloadwireguard-openbsd-7519eda3a2d74d39e8eb8c0689e3da0f2bc3bae0.tar.xz
wireguard-openbsd-7519eda3a2d74d39e8eb8c0689e3da0f2bc3bae0.zip
Make the marked pane a cmd_find_state.
Diffstat (limited to 'usr.bin/tmux/cmd-select-pane.c')
-rw-r--r--usr.bin/tmux/cmd-select-pane.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-select-pane.c b/usr.bin/tmux/cmd-select-pane.c
index 08df3f81fcd..9dccf89f8b1 100644
--- a/usr.bin/tmux/cmd-select-pane.c
+++ b/usr.bin/tmux/cmd-select-pane.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-select-pane.c,v 1.29 2015/12/14 00:31:54 nicm Exp $ */
+/* $OpenBSD: cmd-select-pane.c,v 1.30 2015/12/15 00:00:01 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -94,13 +94,13 @@ cmd_select_pane_exec(struct cmd *self, struct cmd_q *cmdq)
if (args_has(args, 'm') || args_has(args, 'M')) {
if (args_has(args, 'm') && !window_pane_visible(wp))
return (CMD_RETURN_NORMAL);
- lastwp = marked_window_pane;
+ lastwp = marked_pane.wp;
if (args_has(args, 'M') || server_is_marked(s, wl, wp))
server_clear_marked();
else
server_set_marked(s, wl, wp);
- markedwp = marked_window_pane;
+ markedwp = marked_pane.wp;
if (lastwp != NULL) {
server_redraw_window_borders(lastwp->window);