Skip to content

Instantly share code, notes, and snippets.

const segments = splitIntoPatternedSequences(state.typingBuffer)
if (state.currentTypingPosition <= segments.length) {
const currentText = segments
.slice(0, state.currentTypingPosition)
.join('')
.trim()
state.currentText = currentText
state.shownReferences = state.references