* widget.c (buttonbar_callback): Fix a bug that prevented the

last byte from being redrawn.
Reported by David Martin <dmartina@excite.com>
This commit is contained in:
Pavel Roskin 2002-08-21 22:52:29 +00:00
parent 564dc4264b
commit f871fca140
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2002-08-21 Pavel Roskin <proski@gnu.org>
* widget.c (buttonbar_callback): Fix a bug that prevented the
last byte from being redrawn.
Reported by David Martin <dmartina@excite.com>
* 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.

View File

@ -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);