mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-15 09:21:55 +00:00
if search return more then one result
save choice to readline history
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user