- menu-window code could access a null pointer when there was no data - menu-window code can't handle empty contents, because there's no place to position the cursor, so force text mode - still looked ugly, so added a check to avoid displaying anything if the file was empty