| 2740 | } |
| 2741 | |
| 2742 | static void cancelSearch(linenoiseState* l) { |
| 2743 | refreshSearchMultiLine(l, (char*)"", (char*)""); |
| 2744 | |
| 2745 | history_len--; |
| 2746 | free(history[history_len]); |
| 2747 | linenoiseHistoryAdd(""); |
| 2748 | |
| 2749 | l->search = false; |
| 2750 | l->search_buf = std::string(); |
| 2751 | l->search_matches.clear(); |
| 2752 | l->search_index = 0; |
| 2753 | } |
| 2754 | |
| 2755 | static char acceptSearch(linenoiseState* l, char nextCommand) { |
| 2756 | bool hasMatches = false; |
no test coverage detected