Skip to content

Commit c0eca71

Browse files
committed
Fixes #948
1 parent a31167e commit c0eca71

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

FlashDevelop/Dialogs/FRInFilesDialog.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -631,14 +631,9 @@ private void ResultsViewDoubleClick(Object sender, System.EventArgs e)
631631
var doc = Globals.MainForm.OpenEditableDocument(data.Key, false) as ITabbedDocument;
632632
if (doc != null && doc.IsEditable)
633633
{
634-
ScintillaControl sci = doc.SciControl;
635634
if (this.resultsView.Columns.Count == 4)
636635
{
637-
Int32 column = sci.MBSafeTextLength(data.Value.LineText.Substring(0, data.Value.Column));
638-
Int32 length = sci.MBSafeTextLength(data.Value.LineText.Substring(data.Value.Column, data.Value.Length));
639-
Int32 position = sci.PositionFromLine(data.Value.Line - 1) + column;
640-
sci.EnsureVisible(data.Value.Line - 1);
641-
sci.SetSel(position, position + length);
636+
FRDialogGenerics.SelectMatch(doc.SciControl, data.Value);
642637
}
643638
}
644639
}

0 commit comments

Comments
 (0)