Disable window close when in random input mode
Fix crash when doing 'e' on empty directory window