summaryrefslogtreecommitdiffstats
path: root/cmd-list-windows.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-05-04 17:58:27 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-05-04 17:58:27 +0000
commit143aa718e5958b9c7b539657d02c476a43270dad (patch)
tree5db9cc3eaf136cd3cd81ec8f5c5e9862e7c73fc7 /cmd-list-windows.c
parent59a57285278de78d0a69b89fe7851a56bad4240a (diff)
Space trimmage mega-diff.
Diffstat (limited to 'cmd-list-windows.c')
-rw-r--r--cmd-list-windows.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/cmd-list-windows.c b/cmd-list-windows.c
index ad19117e..dec5c6f3 100644
--- a/cmd-list-windows.c
+++ b/cmd-list-windows.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-list-windows.c,v 1.34 2009-04-30 16:27:29 nicm Exp $ */
+/* $Id: cmd-list-windows.c,v 1.35 2009-05-04 17:58:26 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -48,7 +48,7 @@ cmd_list_windows_exec(struct cmd *self, struct cmd_ctx *ctx)
struct session *s;
struct winlink *wl;
struct window *w;
- struct window_pane *wp;
+ struct window_pane *wp;
struct grid *gd;
u_int i;
unsigned long long size;
@@ -64,7 +64,7 @@ cmd_list_windows_exec(struct cmd *self, struct cmd_ctx *ctx)
TAILQ_FOREACH(wp, &w->panes, entry) {
gd = wp->base.grid;
-
+
size = 0;
for (i = 0; i < gd->hsize; i++) {
size += gd->size[i] * sizeof **gd->data;
@@ -76,9 +76,9 @@ cmd_list_windows_exec(struct cmd *self, struct cmd_ctx *ctx)
if (wp->fd != -1)
name = ttyname(wp->fd);
else
- name = "unknown";
- ctx->print(ctx,
- " %s [%ux%u %s] [history %u/%u, %llu bytes]",
+ name = "unknown";
+ ctx->print(ctx,
+ " %s [%ux%u %s] [history %u/%u, %llu bytes]",
name, wp->sx, wp->sy, layout_name(w), gd->hsize,
gd->hlimit, size);
}