You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ea3041a
Browse filesBrowse the repository at this point in the historyBrowse files
fix(cli-rs): take back a paste whose mark undo restores
Since OpenTUI #2094 the edit buffer keeps the prompt's marks, and undo brings a removed paste label back with its mark and original id. The prompt forgot the id with the paste, so it skipped the restored mark, refused its own restore over it, and a submit sent the literal label.
Now sync keeps each removed paste by mark id and makes it a paste again when that mark returns over its label, in mark order, as TS's syncExtmarksWithPromptParts does with the extmark's data. The undo-only fallback that added a new mark goes, with the history_edit flag that fed it: TS has none. Expanding a paste no longer removes its mark first (as TS's expandPastedText), so undoing an expand brings the paste back.
0 commit comments