* screen.c: Don't try to paint anything if width is 0 or less.

Reported by Pawel Sakowski <pawel@sakowski.eu.org>
This commit is contained in:
Pavel Roskin 2002-01-22 23:37:41 +00:00
parent 34fe9abd28
commit 3ecaa166e8
2 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2002-01-22 Pavel Roskin <proski@gnu.org>
* screen.c: Don't try to paint anything if width is 0 or less.
Reported by Pawel Sakowski <pawel@sakowski.eu.org>
* screen.c: Make functions static whenever possible. Remove
unused functions.
* panel.h: Remove corresponding declarations.

View File

@ -583,6 +583,10 @@ repaint_file (WPanel *panel, int file_index, int mv, int attr, int isstatus)
} else
width = (panel->widget.cols - 2);
/* Nothing to paint */
if (width <= 0)
return;
if (mv){
if (!isstatus && panel->split){
widget_move (&panel->widget,