Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 00075c0

Browse files
fix #291: Syntax Highlighting in search results disappears after selecting an entry
1 parent c90905c commit 00075c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Highlighting

src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Highlighting/RichText.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public IEnumerable<HighlightedSection> GetHighlightedSections(int offset, int le
151151
/// </summary>
152152
public RichTextModel ToRichTextModel()
153153
{
154-
return new RichTextModel(stateChangeOffsets, stateChanges);
154+
return new RichTextModel(stateChangeOffsets, stateChanges.Select(ch => ch.Clone()).ToArray());
155155
}
156156

157157
/// <summary>

0 commit comments

Comments
 (0)