* tuiWin.c (_tuiAllWindowsInfo): Don't crash if the window

is not displayed.
This commit is contained in:
Stephane Carrez 2002-09-01 17:23:59 +00:00
parent 27229e9991
commit f020bed670
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
* tuiWin.c (_tuiAllWindowsInfo): Don't crash if the window
is not displayed.
2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
* tui-out.c (tui_out_new): Clear start_of_line.

View File

@ -928,7 +928,7 @@ _tuiAllWindowsInfo (char *arg, int fromTTY)
TuiWinInfoPtr winWithFocus = tuiWinWithFocus ();
for (type = SRC_WIN; (type < MAX_MAJOR_WINDOWS); type++)
if (winList[type]->generic.isVisible)
if (winList[type] && winList[type]->generic.isVisible)
{
if (winWithFocus == winList[type])
printf_filtered (" %s\t(%d lines) <has focus>\n",