Skip to content

Commit 4603e50

Browse files
committed
Remove selection and highlights when text is cleared in QuickFind, closes #941.
1 parent 43f83c9 commit 4603e50

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

FlashDevelop/Controls/QuickFind.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,11 @@ private void TypingTimerTick(Object sender, EventArgs e)
372372
}
373373
else
374374
{
375-
this.findTextBox.BackColor = this.backColor;
376375
this.infoLabel.Text = "";
376+
this.findTextBox.BackColor = this.backColor;
377+
ScintillaControl sci = Globals.SciControl;
378+
sci.SetSel(sci.CurrentPos, sci.CurrentPos);
379+
sci.RemoveHighlights();
377380
}
378381
Globals.MainForm.SetFindText(this, this.findTextBox.Text);
379382
}

0 commit comments

Comments
 (0)