ide: Refining find&replace

git-svn-id: svn://ultimatepp.org/upp/trunk@7484 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-07-03 13:43:49 +00:00
parent 610034ad10
commit 755d38cba8
5 changed files with 26 additions and 16 deletions

View file

@ -215,7 +215,8 @@ void CodeEditor::SelectionChanged()
{
int l, h;
WString nselword;
if(GetSelection(l, h) && h - l < 128 &&
bool sel = GetSelection(l, h);
if(sel && h - l < 128 &&
(l == 0 || !iscid(GetChar(l - 1))) &&
(h >= GetLength() || !iscid(GetChar(h)))) {
for(int i = l; i < h; i++) {