Explorar el Código

fix crash with ctrl-enter as input

reproduce: ./dmenu; send EOF; press ctrl+enter.
master
Hiltjo Posthuma hace 10 años
committed by sin
padre
commit
aa69426670
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      dmenu.c

+ 2
- 1
dmenu.c Ver fichero

@@ -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') {


Cargando…
Cancelar
Guardar