all repos — dmenu @ aa69426670bf0ae480db127ff8d4fc62d6da2593

my build of dmenu

fix crash with ctrl-enter as input

reproduce: ./dmenu; send EOF; press ctrl+enter.
Hiltjo Posthuma hiltjo@codemadness.org
Thu, 24 Jul 2014 19:10:23 +0000
commit

aa69426670bf0ae480db127ff8d4fc62d6da2593

parent

4c50e43df46e486a0fac632d34eaed37359ceba7

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M dmenu.cdmenu.c

@@ -370,7 +370,8 @@ case XK_KP_Enter:

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