From f871fca140f55f7425756c2cf0120ed76e911a68 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Wed, 21 Aug 2002 22:52:29 +0000 Subject: [PATCH] * widget.c (buttonbar_callback): Fix a bug that prevented the last byte from being redrawn. Reported by David Martin --- src/ChangeLog | 4 ++++ src/widget.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index a201c5be7..1513d8d1c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,9 @@ 2002-08-21 Pavel Roskin + * widget.c (buttonbar_callback): Fix a bug that prevented the + last byte from being redrawn. + Reported by David Martin + * layout.c (setup_panels): Make the button bar 0 lines high if it's invisible, so that mouse click on the history button works with invisible button bar. diff --git a/src/widget.c b/src/widget.c index 558fdb46c..4b3818ef4 100644 --- a/src/widget.c +++ b/src/widget.c @@ -2237,7 +2237,7 @@ buttonbar_callback (Dlg_head *h, WButtonBar *bb, int msg, int par) return 1; widget_move (&bb->widget, 0, 0); attrset (DEFAULT_COLOR); - printw ("%-*s", bb->widget.cols - 1, ""); + printw ("%-*s", bb->widget.cols, ""); for (i = 0; i < COLS/8 && i < 10; i++){ widget_move (&bb->widget, 0, i*8); attrset (DEFAULT_COLOR);