MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / pushLine

Function pushLine

cli/src/utils/text-layout.ts:69–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67 let currentWidth = 0
68
69 const pushLine = () => {
70 lines.push(current)
71 current = ''
72 currentWidth = 0
73 }
74
75 const appendSegment = (segment: string) => {
76 if (!segment) return

Callers 2

appendSegmentFunction · 0.85
getLastNVisualLinesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected