info.c (info_show_info): Properly calculate the length of the line drawn

by hline().
This commit is contained in:
Leonard den Ottolander 2005-07-10 08:46:54 +00:00
parent 565866175d
commit 1bf69bc163
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-07-09 Pavel Tsekov <ptsekov@gmx.net>
* info.c (info_show_info): Properly calculate the length of the
line drawn by hline().
2005-07-07 Roland Illig <roland.illig@gmx.de>
* view.c (view_ccache_find): Replaced the linear search with a

View File

@ -77,7 +77,7 @@ info_show_info (struct WInfo *info)
printw (const_cast(char *, _("Midnight Commander %s")), VERSION);
attrset (NORMAL_COLOR);
widget_move (&info->widget, 2, 1);
hline (ACS_HLINE|NORMAL_COLOR, info->widget.x-2);
hline (ACS_HLINE|NORMAL_COLOR, info->widget.cols-2);
if (get_current_type () != view_listing)
return;