Repository navigation
Conversation
Any document change could continue the active style, leaving the caret inside closing markers after a paste. Record text input at its entry point and use that signal, composition, or explicit stored marks to choose which style to continue. Cover clipboard paste and programmatic insertion in the browser. Assisted by GPT-6.2-Sol in Codex.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
closed |
Problem
With the rich-text Web composer enabled, paste
**DEV**into an empty draft and immediately type!. The caret lands before the closing**, producing**DEV!**. The expected draft is**DEV**!.Change
Record text input where it enters the editor. Use that signal, IME composition, or explicitly stored marks to decide whether the caret should continue an inline style. Pasted and programmatically inserted content ends outside the closing delimiter by default.
Scope
Fixes #41321.
Verification
**DEV**using the system clipboard and typed!without moving the caret. The base produced**DEV!**. The fix produced**DEV**!.vp run check:changed upstream/mainpassed.Before the fix
With the fix
Created with GPT-6.2-Sol via Codex in T3 Code.