1 Commits

Author SHA1 Message Date
JUN JIE NAN
9f5dfe84d0 Merge ba4453bd83 into 49c8094b53 2023-06-02 02:07:18 +00:00

View File

@@ -415,9 +415,10 @@ search_result Library::process_phrase(const char *loc_str, IReadLine &io, bool f
colorize_output_ ? ESC_END : "");
}
int choise;
std::unique_ptr<IReadLine> choice_readline(create_readline_object());
for (;;) {
std::string str_choise;
io.read(_("Your choice[-1 to abort]: "), str_choise);
choice_readline->read(_("Your choice[-1 to abort]: "), str_choise);
sscanf(str_choise.c_str(), "%d", &choise);
if (choise >= 0 && choise < int(res_list.size())) {
sdcv_pager pager;