Changeset 11835 for trunk/sources/HeuristicLab.CodeEditor
- Timestamp:
- 01/28/15 12:07:33 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.CodeEditor/3.4/CodeEditor.cs
r11825 r11835 79 79 if (value == null) value = string.Empty; 80 80 if (prefix == value) return; 81 if (prefixMarker != null) textMarkerService.Remove(prefixMarker);81 if (prefixMarker != null) prefixMarker.Delete(); 82 82 Doc.Remove(0, prefix.Length); 83 83 prefix = value; … … 97 97 if (value == null) value = string.Empty; 98 98 if (suffix == value) return; 99 if (suffixMarker != null) textMarkerService.Remove(suffixMarker);99 if (suffixMarker != null) suffixMarker.Delete(); 100 100 Doc.Remove(Doc.TextLength - suffix.Length, suffix.Length); 101 101 suffix = value; … … 244 244 245 245 TextEditor.TextChanged += (sender, args) => { 246 textMarkerService.RemoveAll(x => x != prefixMarker && x != suffixMarker); 246 foreach (var marker in textMarkerService.TextMarkers) { 247 if (marker == prefixMarker || marker == suffixMarker) continue; 248 if (marker.Length != (int)marker.Tag) 249 marker.Delete(); 250 } 247 251 OnTextEditorTextChanged(); 248 252 }; … … 408 412 marker.MarkerTypes = TextMarkerTypes.SquigglyUnderline; 409 413 marker.MarkerColor = error.IsWarning ? WarningColor : ErrorColor; 414 marker.Tag = segment.Length; 410 415 } 411 416
Note: See TracChangeset
for help on using the changeset viewer.