A couple of early returns could result in temporary windows getting left around instead of being released for re-use, which in turn might lead to a panic due to lack of available window slots. The first one is accompanied by an 'impossible' warning which no one has ever reported and the second one could only happen if data file 'keyhelp' was missing, so panic due to either of these is hypothetical as far as released versions go. Somebody making modifications could run afoul of either of them though. query_category() - switch from early return to 'goto' so that the temporary window used for a menu will always be destroyed; whatdoes_help() - defer creating the display window until after the data file has been successfully opened so that early return won't need any window cleanup.
21 KiB
21 KiB