STR: 1. Open to edit some message containing quoted text. 2. Delete some of the colored quoted text 3. Undo EXPECTED: Quoted text should be colored properly after Undo ACTUAL: All text restored through Undo is the same default color. Attaching a screencast
Created attachment 1851 [details] screencast
P.S. As it can be seen on the video, after inserting a line before the restored quoted text the colors are restored but not before that.
The reason for this behavior is that after a change claws updates the colors just for the paragraph following the cursor. As the undo command puts the cursor at the end, the colors are not updated.
Created attachment 1972 [details] color quotes in compose window after an undo or paste I'm attaching a patch. Please give me feedback if anything needs improvement. Patch description: Properly color quotes in compose window after an undo or paste action.