From 7cd3cf0eada8513907cd1cc78d7669752235f419 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 12 Jan 2009 18:22:47 +0000 Subject: Make the window pane code handle panes of different sizes, and add a -l and -p arguments to split-window to specify the new window size in lines or as a percentage. --- cmd-list-windows.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cmd-list-windows.c') diff --git a/cmd-list-windows.c b/cmd-list-windows.c index 56434f67..66360f65 100644 --- a/cmd-list-windows.c +++ b/cmd-list-windows.c @@ -1,4 +1,4 @@ -/* $Id: cmd-list-windows.c,v 1.26 2009-01-11 23:31:46 nicm Exp $ */ +/* $Id: cmd-list-windows.c,v 1.27 2009-01-12 18:22:47 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -81,8 +81,7 @@ cmd_list_windows_exec(struct cmd *self, struct cmd_ctx *ctx) ctx->print(ctx, " pane %d:" " %s [%ux%u] [history %u/%u, %llu bytes]", i, name, - screen_size_x(&wp->base), screen_size_y(&wp->base), - gd->hsize, gd->hlimit, size); + wp->sx, wp->sy, gd->hsize, gd->hlimit, size); } } -- cgit