MCPcopy Create free account
hub / github.com/antirez/ds4 / shouldFoldText

Function shouldFoldText

linenoise.c:1009–1011  ·  view source on GitHub ↗

Return true if the text should be folded: if it contains newlines or is at * least PASTE_FOLD_THRESHOLD bytes long. */

Source from the content-addressed store, hash-verified

1007 width = abAppendUtf8Clipped(ab, s, len, cols);
1008 while (width < cols) {
1009 abAppend(ab, " ", 1);
1010 width++;
1011 }
1012 if (l->status_end) abAppend(ab, l->status_end, (int)strlen(l->status_end));
1013 abAppend(ab, "\x1b[?7h", 5);
1014}

Callers 1

linenoiseEditPasteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected