Browse code

Add TAB

John Hawthorn authored on 14/09/2014 03:56:40
Showing 1 changed files

  • fzy.c index 711e2cd..d299d42 100644
... ...
@@ -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);