mirror of git://git.suckless.org/dmenu
fix crash with ctrl-enter as input
reproduce: ./dmenu; send EOF; press ctrl+enter.
This commit is contained in:
parent
4c50e43df4
commit
aa69426670
1
dmenu.c
1
dmenu.c
|
@ -370,6 +370,7 @@ keypress(XKeyEvent *ev) {
|
||||||
puts((sel && !(ev->state & ShiftMask)) ? sel->text : text);
|
puts((sel && !(ev->state & ShiftMask)) ? sel->text : text);
|
||||||
if(!(ev->state & ControlMask))
|
if(!(ev->state & ControlMask))
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
|
if(sel)
|
||||||
sel->out = True;
|
sel->out = True;
|
||||||
break;
|
break;
|
||||||
case XK_Right:
|
case XK_Right:
|
||||||
|
|
Loading…
Reference in New Issue