diff --git a/scintilla/deelx/deelx64.h b/scintilla/deelx/deelx64.h index a63a33648..dab7bfccc 100644 --- a/scintilla/deelx/deelx64.h +++ b/scintilla/deelx/deelx64.h @@ -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__ diff --git a/src/Edit.c b/src/Edit.c index aa1a64fa7..d7fa03eb9 100644 --- a/src/Edit.c +++ b/src/Edit.c @@ -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);