* tuiWin.c (_tuiAllWindowsInfo): Don't crash if the window
is not displayed.
This commit is contained in:
parent
27229e9991
commit
f020bed670
2 changed files with 6 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue