minor fix
3f244b1d
2 file(s) · +3 −3
| 1 | 1 | # dmenu version |
|
| 2 | - | VERSION = 3.7 |
|
| 2 | + | VERSION = 3.8 |
|
| 3 | 3 | ||
| 4 | 4 | # Customize below to fit your system |
|
| 5 | 5 |
| 477 | 477 | calcoffsets(); |
|
| 478 | 478 | break; |
|
| 479 | 479 | case XK_Return: |
|
| 480 | - | if((e->state & ShiftMask) && text) |
|
| 480 | + | if((e->state & ShiftMask) && *text) |
|
| 481 | 481 | fprintf(stdout, "%s", text); |
|
| 482 | 482 | else if(sel) |
|
| 483 | 483 | fprintf(stdout, "%s", sel->text); |
|
| 484 | - | else if(text) |
|
| 484 | + | else if(*text) |
|
| 485 | 485 | fprintf(stdout, "%s", text); |
|
| 486 | 486 | fflush(stdout); |
|
| 487 | 487 | running = False; |