fix crash with ctrl-enter as input

reproduce: ./dmenu; send EOF; press ctrl+enter.
This commit is contained in:
Hiltjo Posthuma 2014-07-24 19:10:23 +00:00 committed by sin
parent 4c50e43df4
commit aa69426670
1 changed files with 2 additions and 1 deletions

View File

@ -370,6 +370,7 @@ keypress(XKeyEvent *ev) {
puts((sel && !(ev->state & ShiftMask)) ? sel->text : text);
if(!(ev->state & ControlMask))
exit(EXIT_SUCCESS);
if(sel)
sel->out = True;
break;
case XK_Right: