| ... | ... |
@@ -207,6 +207,9 @@ void run(tty_t *tty){
|
| 207 | 207 |
action_next(); |
| 208 | 208 |
}else if(ch == 16){ /* C-P */
|
| 209 | 209 |
action_prev(); |
| 210 |
+ }else if(ch == 9){ /* TAB */
|
|
| 211 |
+ strncpy(search, choices[choices_sorted[current_selection]], SEARCH_SIZE_MAX); |
|
| 212 |
+ search_size = strlen(search); |
|
| 210 | 213 |
}else if(ch == 10){ /* Enter */
|
| 211 | 214 |
clear(tty); |
| 212 | 215 |
emit(tty); |