+ fix: missing CallTip "^ Zero-Length Match" in case of previous search

This commit is contained in:
Rainer Kottenhoff 2018-09-03 15:56:07 +02:00
parent 842a889ab3
commit 48e493be20
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;
}