diff options
author | 2017-03-13 17:20:11 +0000 | |
---|---|---|
committer | 2017-03-13 17:20:11 +0000 | |
commit | 766e1650c0475b54dfc78cc1e9a655550522f3bd (patch) | |
tree | 342751fa69830a029d7699de9a84201289b72c47 | |
parent | Remove leading slashes from response to ensure a proper url. (diff) | |
download | wireguard-openbsd-766e1650c0475b54dfc78cc1e9a655550522f3bd.tar.xz wireguard-openbsd-766e1650c0475b54dfc78cc1e9a655550522f3bd.zip |
Log where panes are created.
-rw-r--r-- | usr.bin/tmux/window.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c index b9b14d4aa02..d661408b1bc 100644 --- a/usr.bin/tmux/window.c +++ b/usr.bin/tmux/window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.185 2017/02/27 13:07:57 nicm Exp $ */ +/* $OpenBSD: window.c,v 1.186 2017/03/13 17:20:11 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -588,12 +588,16 @@ window_add_pane(struct window *w, struct window_pane *other, int before, other = w->active; wp = window_pane_create(w, w->sx, w->sy, hlimit); - if (TAILQ_EMPTY(&w->panes)) + if (TAILQ_EMPTY(&w->panes)) { + log_debug("%s: @%u at start", __func__, w->id); TAILQ_INSERT_HEAD(&w->panes, wp, entry); - else if (before) + } else if (before) { + log_debug("%s: @%u before %%%u", __func__, w->id, wp->id); TAILQ_INSERT_BEFORE(other, wp, entry); - else + } else { + log_debug("%s: @%u after %%%u", __func__, w->id, wp->id); TAILQ_INSERT_AFTER(&w->panes, other, wp, entry); + } return (wp); } |