From 1bf69bc16340e2651db946b427d24fbc9d302f16 Mon Sep 17 00:00:00 2001 From: Leonard den Ottolander Date: Sun, 10 Jul 2005 08:46:54 +0000 Subject: [PATCH] info.c (info_show_info): Properly calculate the length of the line drawn by hline(). --- src/ChangeLog | 5 +++++ src/info.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 37257a7b7..13157d845 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-07-09 Pavel Tsekov + + * info.c (info_show_info): Properly calculate the length of the + line drawn by hline(). + 2005-07-07 Roland Illig * view.c (view_ccache_find): Replaced the linear search with a diff --git a/src/info.c b/src/info.c index 316aaba96..f8eb047e8 100644 --- a/src/info.c +++ b/src/info.c @@ -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;