| 519 | } |
| 520 | |
| 521 | void show_specific_helps(const vector<string> keys) |
| 522 | { |
| 523 | // a fancier version of this might toggle between tabs, but this just |
| 524 | // concatenates |
| 525 | vector<formatted_string> formatted_lines; |
| 526 | size_t i = 0; |
| 527 | for (const auto &key : keys) |
| 528 | { |
| 529 | string help = getHelpString(key); |
| 530 | trim_string_right(help); |
| 531 | for (const string &line : split_string("\n", help, false, true)) |
| 532 | formatted_lines.push_back(formatted_string::parse_string(line)); |
| 533 | |
| 534 | i++; |
| 535 | if (i < keys.size()) |
| 536 | formatted_lines.emplace_back(""); |
| 537 | } |
| 538 | show_keyhelp_menu(formatted_lines); |
| 539 | } |
| 540 | |
| 541 | void show_specific_help(const string &key) |
| 542 | { |
no test coverage detected