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

Function refreshLine

tools/shell/linenoise.cpp:2444–2449  ·  view source on GitHub ↗

Calls the two low level functions refreshSingleLine() or * refreshMultiLine() according to the selected mode. */

Source from the content-addressed store, hash-verified

2442/* Calls the two low level functions refreshSingleLine() or
2443 * refreshMultiLine() according to the selected mode. */
2444static void refreshLine(struct linenoiseState* l) {
2445 if (mlmode)
2446 refreshMultiLine(l);
2447 else
2448 refreshSingleLine(l);
2449}
2450
2451static void highlightSearchMatch(char* buffer, char* resultBuf, const char* search_buffer) {
2452 const char* matchUnderlinePrefix = "\033[4m";

Callers 15

completeLineFunction · 0.85
linenoiseEditMoveRowUpFunction · 0.85
linenoiseEditMoveRowDownFunction · 0.85
linenoiseEditInsertFunction · 0.85
linenoiseEditInsertMultiFunction · 0.85
linenoiseEditMoveLeftFunction · 0.85
linenoiseEditMoveRightFunction · 0.85
linenoiseEditMoveHomeFunction · 0.85
linenoiseEditMoveEndFunction · 0.85
linenoiseEditHistoryNextFunction · 0.85

Calls 2

refreshMultiLineFunction · 0.85
refreshSingleLineFunction · 0.85

Tested by

no test coverage detected