From 5261d73b9a9db7d751d5f7a1bf397abec894e342 Mon Sep 17 00:00:00 2001 From: Ondrej Petrzilka Date: Thu, 13 Oct 2016 08:09:29 +0200 Subject: [PATCH] fixed issue with missing results --- ILSpy/SearchPane.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ILSpy/SearchPane.cs b/ILSpy/SearchPane.cs index 37b3588e9..9068b304f 100644 --- a/ILSpy/SearchPane.cs +++ b/ILSpy/SearchPane.cs @@ -257,11 +257,12 @@ namespace ICSharpCode.ILSpy if (this.Results[i].Fitness < result.Fitness) { this.Results.Insert(i, result); - break; + return; } } - } - else + this.Results.Insert(this.Results.Count - 1, result); + } + else { // Original code this.Results.Insert(this.Results.Count - 1, result);