+ enhanc comments by useful web links

This commit is contained in:
Rainer Kottenhoff 2017-10-28 14:44:44 +02:00
parent 990d826570
commit b23e5db63d
2 changed files with 9 additions and 2 deletions

View File

@ -10,10 +10,14 @@
// Author: Ê·ÊÙΰ (sswater shi)
// sswater@gmail.com
//
// $Revision $
//
// + adaption for 64-bit usage: "basetsd : INT_PTR" replaces int-pointer arithmetic and buffer indexes
// + Cppcheck cleanup
//
// Good Overview:
// https://www.regular-expressions.info/
//
#ifndef __DEELX_REGEXP64__H__
#define __DEELX_REGEXP64__H__

View File

@ -5087,6 +5087,9 @@ char* __fastcall EditGetReplaceString(HWND hwnd, LPCEDITFINDREPLACE lpefr, int*
//
BOOL EditReplace(HWND hwnd, LPCEDITFINDREPLACE lpefr) {
// reject to replace zero-length matches -> EditPaste()
// see also: https://www.regular-expressions.info/zerolength.html
//
if ((BOOL)SendMessage(hwnd, SCI_GETSELECTIONEMPTY, 0, 0))
return EditFindNext(hwnd, lpefr, FALSE);