From dcde77cd0964aa119547173ecd59345697fec7cd Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 8 Aug 2009 16:03:09 +0000 Subject: [PATCH] Update. --- TODO | 13 ++++--------- cmd-list-windows.c | 5 +++-- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/TODO b/TODO index 20537f87..b81ed361 100644 --- a/TODO +++ b/TODO @@ -101,12 +101,7 @@ - command to list what is actually running in each window with command line, pid (need some adaption of the osdep code) - options to change/remove the symbols (*-+ etc) in status line (bloat?) -- status-fg/bg (and mode, message) are reversed, this is confusing if remove - reverse from status-attr, but confusing by default if they are fixed. best - would be to make fg/bg adaptive and have them do the right thing. need - changes/additions to options though -- support for bce -- when the external term doesn't support setaf/setab, the term inside still - does so programs which attempt to show reverse by swapping fg/bg colours - rather than with the reverse attribute (eg mc) will display incorrectly ** if - this was fixed, could lose reverse from status-fg/bg and fix reverse problems +- asupport for bce +- reset attributes when idle so ~./pkill are less likely to leave terminal upset +- it would be nice if the start/end line keys in copy mode were aware of + wrapped lines diff --git a/cmd-list-windows.c b/cmd-list-windows.c index 19260324..635b20f2 100644 --- a/cmd-list-windows.c +++ b/cmd-list-windows.c @@ -1,4 +1,4 @@ -/* $Id: cmd-list-windows.c,v 1.38 2009-07-28 22:12:16 tcunha Exp $ */ +/* $Id: cmd-list-windows.c,v 1.39 2009-08-08 16:03:09 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -71,9 +71,10 @@ cmd_list_windows_exec(struct cmd *self, struct cmd_ctx *ctx) size += gd->hsize * (sizeof *gd->data); size += gd->hsize * (sizeof *gd->size); + name = NULL; if (wp->fd != -1) name = ttyname(wp->fd); - else + if (name == NULL) name = "unknown"; ctx->print(ctx, " %s [%ux%u] [history %u/%u, %llu bytes]",