richedit: Fixed regression in ME_SetCharFormat.
Missed an assignment for end_run when the end cursor is provided and the end position doesn't cause a split.
This commit is contained in:
parent
9c7ded0973
commit
326f9b3f3f
|
@ -787,6 +787,8 @@ void ME_SetCharFormat(ME_TextEditor *editor, ME_Cursor *start, ME_Cursor *end, C
|
|||
{
|
||||
end_run = end->pRun = ME_SplitRunSimple(editor, end->pRun, end->nOffset);
|
||||
end->nOffset = 0;
|
||||
} else if (end) {
|
||||
end_run = end->pRun;
|
||||
}
|
||||
|
||||
run = start->pRun;
|
||||
|
|
Loading…
Reference in New Issue