MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / formatNothingToUndoMessage

Function formatNothingToUndoMessage

apps/kimi-code/src/tui/commands/undo.ts:351–356  ·  view source on GitHub ↗
(availability: UndoAvailability)

Source from the content-addressed store, hash-verified

349}
350
351function formatNothingToUndoMessage(availability: UndoAvailability): string {
352 if (availability.stoppedAtCompaction) {
353 return 'Nothing to undo after the last compaction.';
354 }
355 return 'Nothing to undo.';
356}
357
358function formatPromptCount(count: number): string {
359 return `${String(count)} ${count === 1 ? 'prompt' : 'prompts'}`;

Callers 1

showUndoSelectorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected