|
@ -392,7 +392,8 @@ keypress(XKeyEvent *ev) { |
|
|
case XK_Tab: |
|
|
case XK_Tab: |
|
|
if(!sel) |
|
|
if(!sel) |
|
|
return; |
|
|
return; |
|
|
strncpy(text, sel->text, sizeof text); |
|
|
|
|
|
|
|
|
strncpy(text, sel->text, sizeof text - 1); |
|
|
|
|
|
text[sizeof text - 1] = '\0'; |
|
|
cursor = strlen(text); |
|
|
cursor = strlen(text); |
|
|
match(); |
|
|
match(); |
|
|
break; |
|
|
break; |
|
|