* screen.c: Don't try to paint anything if width is 0 or less.
Reported by Pawel Sakowski <pawel@sakowski.eu.org>
Этот коммит содержится в:
родитель
34fe9abd28
Коммит
3ecaa166e8
@ -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.
|
||||
|
@ -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,
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user