dmenu

Dmenu fork with xft fonts.
git clone git://r-36.net/dmenu
Log | Files | Refs | README | LICENSE

commit aa69426670bf0ae480db127ff8d4fc62d6da2593
parent 4c50e43df46e486a0fac632d34eaed37359ceba7
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu, 24 Jul 2014 19:10:23 +0000

fix crash with ctrl-enter as input

reproduce: ./dmenu; send EOF; press ctrl+enter.

Diffstat:
dmenu.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dmenu.c b/dmenu.c @@ -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') {