From b23e5db63d46b141207449ebd10d8aff47aa9876 Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Sat, 28 Oct 2017 14:44:44 +0200 Subject: [PATCH] + enhanc comments by useful web links --- scintilla/deelx/deelx64.h | 8 ++++++-- src/Edit.c | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) 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);