Merge pull request #643 from RaiKoHoff/Dev_0903

Zero-Length CallTip on previous search missing
This commit is contained in:
Rainer Kottenhoff 2018-09-03 16:52:03 +02:00 committed by GitHub
commit 8161fb25d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 6 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -6014,6 +6014,8 @@ bool EditFindPrev(HWND hwnd, LPCEDITFINDREPLACE lpefr, bool bExtendSelection, bo
bSuppressNotFound = true;
}
SciCall_CallTipCancel();
DocPos iPos = _FindInTarget(hwnd, szFind, slen, (int)(lpefr->fuFlags), &start, &end, true, FRMOD_NORM);
if ((iPos < -1) && (lpefr->fuFlags & SCFIND_REGEXP))
@ -6055,6 +6057,10 @@ bool EditFindPrev(HWND hwnd, LPCEDITFINDREPLACE lpefr, bool bExtendSelection, bo
else {
EditSelectEx(hwnd, end, start, -1, -1);
}
if (start == end) {
EditShowZeroLengthCallTip(hwnd, start);
}
return true;
}