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);