fix crash with ctrl-enter as input
reproduce: ./dmenu; send EOF; press ctrl+enter.
This commit is contained in:
parent
3673394bdc
commit
4669af9d8e
|
@ -370,7 +370,8 @@ keypress(XKeyEvent *ev) {
|
|||
puts((sel && !(ev->state & ShiftMask)) ? sel->text : text);
|
||||
if(!(ev->state & ControlMask))
|
||||
exit(EXIT_SUCCESS);
|
||||
sel->out = True;
|
||||
if(sel)
|
||||
sel->out = True;
|
||||
break;
|
||||
case XK_Right:
|
||||
if(text[cursor] != '\0') {
|
||||
|
|
Loading…
Reference in New Issue
Block a user