From e1037c833b53a73dca54e77fede623ebfe99ac28 Mon Sep 17 00:00:00 2001 From: "METANEOCORTEX\\Kotti" Date: Fri, 24 Feb 2023 11:05:45 +0100 Subject: [PATCH] +fix: fast delay for UndoTransactionTimeout --- src/Notepad3.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Notepad3.c b/src/Notepad3.c index f060c940b..d471ec9d2 100644 --- a/src/Notepad3.c +++ b/src/Notepad3.c @@ -523,7 +523,6 @@ static int msgcmp(void* mqc1, void* mqc2) #define _MQ_FAST (_MQ_TIMER_CYCLE << 1) #define _MQ_STD (_MQ_TIMER_CYCLE << 2) #define _MQ_LAZY (_MQ_TIMER_CYCLE << 3) -#define _MQ_RELAXED (_MQ_TIMER_CYCLE << 4) #define _MQ_ms2cycl(T) (((T) + USER_TIMER_MINIMUM) / _MQ_TIMER_CYCLE) @@ -8543,7 +8542,7 @@ inline static LRESULT _MsgNotifyLean(const SCNotification *const scn, bool* bMod DWORD const timeout = Settings2.UndoTransactionTimeout; if (timeout != 0UL) { if (!((iModType & SC_PERFORMED_UNDO) || (iModType & SC_PERFORMED_REDO))) { - _DelaySplitUndoTransaction(max_dw(_MQ_RELAXED, timeout)); + _DelaySplitUndoTransaction(max_dw(_MQ_IMMEDIATE, timeout)); } } }