summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 68176d2)
raw | patch | inline | side by side (parent: 68176d2)
author | Kalle Wallin <kaw@linux.se> | |
Wed, 9 Jun 2004 17:03:53 +0000 (17:03 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Wed, 9 Jun 2004 17:03:53 +0000 (17:03 +0000) |
src/list_window.c | patch | blob | history |
diff --git a/src/list_window.c b/src/list_window.c
index 6b4a41f0c7591290a487f3b3c0af1ebf11d0e23f..588725625c8708d600514ac5da6946e822400c76 100644 (file)
--- a/src/list_window.c
+++ b/src/list_window.c
/*
- * (c) 2004 by Kalle Wallin (kaw@linux.se)
+ * $Id$
+ *
+ * (c) 2004 by Kalle Wallin <kaw@linux.se>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
if( label )
{
int selected = lw->start+i == lw->selected;
+ size_t len = strlen(label);
if( highlight )
colors_use(lw->w, COLOR_LIST_BOLD);
if( selected )
wattron(lw->w, A_REVERSE);
- waddnstr(lw->w, label, lw->cols-1);
- if( fill )
- mvwhline(lw->w, i, strlen(label), ' ', lw->cols-1);
+ waddnstr(lw->w, label, lw->cols);
+ if( fill && len<lw->cols )
+ mvwhline(lw->w, i, len, ' ', lw->cols-len);
if( selected )
wattroff(lw->w, A_REVERSE);