summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/window.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/window.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/window.c')
-rw-r--r--usr.bin/tmux/window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index 8cf69344f32..41dc1bd070b 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.151 2015/12/02 23:09:22 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.152 2015/12/15 00:00:01 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -568,7 +568,7 @@ window_add_pane(struct window *w, u_int hlimit)
void
window_lost_pane(struct window *w, struct window_pane *wp)
{
- if (wp == marked_window_pane)
+ if (wp == marked_pane.wp)
server_clear_marked();
if (wp == w->active) {
@@ -691,7 +691,7 @@ window_printable_flags(struct session *s, struct winlink *wl)
flags[pos++] = '*';
if (wl == TAILQ_FIRST(&s->lastw))
flags[pos++] = '-';
- if (server_check_marked() && wl == marked_winlink)
+ if (server_check_marked() && wl == marked_pane.wl)
flags[pos++] = 'M';
if (wl->window->flags & WINDOW_ZOOMED)
flags[pos++] = 'Z';