|
@ -477,11 +477,11 @@ kpress(XKeyEvent * e) { |
|
|
calcoffsets(); |
|
|
calcoffsets(); |
|
|
break; |
|
|
break; |
|
|
case XK_Return: |
|
|
case XK_Return: |
|
|
if((e->state & ShiftMask) && text) |
|
|
|
|
|
|
|
|
if((e->state & ShiftMask) && *text) |
|
|
fprintf(stdout, "%s", text); |
|
|
fprintf(stdout, "%s", text); |
|
|
else if(sel) |
|
|
else if(sel) |
|
|
fprintf(stdout, "%s", sel->text); |
|
|
fprintf(stdout, "%s", sel->text); |
|
|
else if(text) |
|
|
|
|
|
|
|
|
else if(*text) |
|
|
fprintf(stdout, "%s", text); |
|
|
fprintf(stdout, "%s", text); |
|
|
fflush(stdout); |
|
|
fflush(stdout); |
|
|
running = False; |
|
|
running = False; |
|
|