Browse Source
feat: AddRange for markers (#40)
Co-authored-by: Gerhard Olsson <gerhardol@users.noreply.github.com>
pull/41/head
Gerhard Olsson
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
7 additions and
1 deletions
-
Project/Src/Document/MarkerStrategy/MarkerStrategy.cs
|
|
@ -34,6 +34,12 @@ namespace ICSharpCode.TextEditor.Document |
|
|
|
textMarker.Add(item); |
|
|
|
} |
|
|
|
|
|
|
|
public void AddMarker(IList<TextMarker> items) |
|
|
|
{ |
|
|
|
markersTable.Clear(); |
|
|
|
textMarker.AddRange(items); |
|
|
|
} |
|
|
|
|
|
|
|
public void InsertMarker(int index, TextMarker item) |
|
|
|
{ |
|
|
|
markersTable.Clear(); |
|
|
@ -109,4 +115,4 @@ namespace ICSharpCode.TextEditor.Document |
|
|
|
Document.UpdateSegmentListOnDocumentChange(textMarker, e); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |