~ubuntu-branches/ubuntu/saucy/monodevelop/saucy-proposed

« back to all changes in this revision

Viewing changes to src/core/Mono.Texteditor/Mono.TextEditor/FoldMarkerMargin.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields, 1840cc1
  • Date: 2012-02-05 10:49:36 UTC
  • mfrom: (10.2.12)
  • Revision ID: package-import@ubuntu.com-20120205104936-f3dutq6lnseokb6d
Tags: 2.8.6.3+dfsg-1
[1840cc1] Imported Upstream version 2.8.6.3+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
                        }
149
149
                        StopTimer ();
150
150
                        if (found) {
151
 
                                foldings = editor.Document.GetFoldingContaining (lineSegment);
 
151
                                var list = new List<FoldSegment>(editor.Document.GetFoldingContaining (lineSegment));
 
152
                                list.Sort ((x, y) => x.Offset.CompareTo (y.Offset));
 
153
                                foldings = list;
152
154
                                if (editor.TextViewMargin.BackgroundRenderer == null) {
153
155
                                        timerId = GLib.Timeout.Add (150, SetBackgroundRenderer);
154
156
                                } else {