V!: don't hang on EOF

This commit is contained in:
Jonathan Neuschäfer 2015-03-23 14:45:31 +01:00 committed by pancake
parent ab098c7f23
commit 861f185c23

View File

@ -480,6 +480,7 @@ repeat:
} }
break; break;
case 'q': case 'q':
case -1: // EOF
goto beach; goto beach;
case 27: // ESC case 27: // ESC
if (r_cons_readchar () == 91) { if (r_cons_readchar () == 91) {