if search return more then one result

save choice to readline history
This commit is contained in:
Evgeniy Dushistov
2014-05-11 02:20:03 +00:00
parent c347ae7da9
commit ab8d6ec74e

View File

@@ -385,6 +385,7 @@ bool Library::process_phrase(const char *loc_str, IReadLine &io, bool force)
sscanf(str_choise.c_str(), "%d", &choise);
if (choise >= 0 && choise < int(res_list.size())) {
sdcv_pager pager;
io.add_to_history(res_list[choise].def.c_str());
print_search_result(pager.get_stream(), res_list[choise]);
break;
} else if (choise == -1){