aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dmenu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dmenu.c b/dmenu.c
index dd2c128..b56f3a8 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -370,7 +370,8 @@ keypress(XKeyEvent *ev) {
370 puts((sel && !(ev->state & ShiftMask)) ? sel->text : text); 370 puts((sel && !(ev->state & ShiftMask)) ? sel->text : text);
371 if(!(ev->state & ControlMask)) 371 if(!(ev->state & ControlMask))
372 exit(EXIT_SUCCESS); 372 exit(EXIT_SUCCESS);
373 sel->out = True; 373 if(sel)
374 sel->out = True;
374 break; 375 break;
375 case XK_Right: 376 case XK_Right:
376 if(text[cursor] != '\0') { 377 if(text[cursor] != '\0') {