summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authornicm <nicm>2017-03-13 17:20:11 +0000
committernicm <nicm>2017-03-13 17:20:11 +0000
commit8e9b10062b56b29d4834798d4264825ca1b3a8dd (patch)
treeeae6cfe84b4133b45e155d0e90836b0f739081c3 /window.c
parentfd652101392e5f8a3e6e59ea823d1d3df0134b05 (diff)
Log where panes are created.
Diffstat (limited to 'window.c')
-rw-r--r--window.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/window.c b/window.c
index e48826b2..d104af9d 100644
--- a/window.c
+++ b/window.c
@@ -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);
}