Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@novell.com>2010-05-11 15:24:22 +0400
committerLluis Sanchez <lluis@novell.com>2010-05-11 15:24:22 +0400
commit7c78366dd8744f43f9fed34896c40aa8be4a4a1e (patch)
tree4e27e54790c31f81095239126db54466079a78cf /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.NavigateToDialog
parent8db5d8a3158af6ab90a23d5901ce9e445d92c965 (diff)
* MonoDevelop.Ide.NavigateToDialog/NavigateToDialog.cs: When
converting an acronym match to a substring match, include the original acronym char in the current substring. Fixes bug #485376 - Go-to-file acronym matching inconsistent. svn path=/trunk/monodevelop/; revision=157111
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.NavigateToDialog')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.NavigateToDialog/NavigateToDialog.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.NavigateToDialog/NavigateToDialog.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.NavigateToDialog/NavigateToDialog.cs
index 3a8f2a7a59..6b72e04c17 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.NavigateToDialog/NavigateToDialog.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.NavigateToDialog/NavigateToDialog.cs
@@ -643,9 +643,7 @@ namespace MonoDevelop.Ide.NavigateToDialog
// Possible substring match after an acronim. Start a new lane.
MatchLane newLane = lane.Clone ();
newLane.MatchMode = MatchMode.Substring;
- newLane.Index++;
- newLane.Positions [newLane.Index] = tn;
- newLane.Lengths [newLane.Index] = 1;
+ newLane.Lengths [newLane.Index]++;
newLane.MatchIndex++;
matchLanes.Add (newLane);
if (newLane.MatchIndex == toMatch.Length)