Bugfix: segmentation fault if the terminal window is too narrow

Fixes a segmentation fault if the terminal window is too narrow for the Help and Quit items