MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / cancelSearch

Function cancelSearch

tools/shell/linenoise.cpp:2742–2753  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2740}
2741
2742static 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
2755static char acceptSearch(linenoiseState* l, char nextCommand) {
2756 bool hasMatches = false;

Callers 2

acceptSearchFunction · 0.85
linenoiseSearchFunction · 0.85

Calls 3

refreshSearchMultiLineFunction · 0.85
linenoiseHistoryAddFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected