[mono/monodevelop] d855a1b2: [TextEditor] Fixed 'Bug 16126 - When searching in the whole solution,

Mike Krüger ([email protected]) <[email protected]> Wed, 13 Nov 2013 06:15:39 +0000
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <000001425019d5e0-cc40bc2f-86a6-449a-961e-7d99a211bb6a-000000@email.amazonses.com>
   Branch: refs/heads/master
     Home: https://github.com/mono/monodevelop
  Compare: https://github.com/mono/monodevelop/compare/acc09e8978aa...d855a1b2fcad

   Commit: d855a1b2fcad50a39f8b43c714daa44b8da3cff4
   Author: Mike Krüger <[email protected]> (mkrueger)
     Date: 2013-11-13 07:14:33 GMT
      URL: https://github.com/mono/monodevelop/commit/d855a1b2fcad50a39f8b43c714daa44b8da3cff4

[TextEditor] Fixed 'Bug 16126 - When searching in the whole solution,
if there are many search matches (e.g. over 500-1000) an error is
displayed'.

Changed paths:
  M main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/ColorScheme.cs

Modified: main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/ColorScheme.cs
===================================================================
@@ -591,7 +591,7 @@ public ChunkStyle GetChunkStyle (string color)
 			PropertyDecsription val;
 			if (!textColors.TryGetValue (color, out val)) {
 				Console.WriteLine ("Chunk style : " + color + " is undefined.");
-				return null;
+				return GetChunkStyle ("Plain Text");
 			}
 			return val.Info.GetValue (this, null) as ChunkStyle;
 		}
_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches