From 98fc47be44ce0e751a6837fc77af85e254ea84e3 Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Wed, 6 May 2026 23:51:33 +0200 Subject: [PATCH] fix: skip paste board minimizing if nothing to paste --- src/Notepad3.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Notepad3.c b/src/Notepad3.c index 89e095792..1e8cb860a 100644 --- a/src/Notepad3.c +++ b/src/Notepad3.c @@ -1879,6 +1879,9 @@ static VOID CALLBACK _DeferMinimizeTimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEv if (IsAsyncKeyDown(VK_CONTROL)) { return; // user held Ctrl during the deferral window — keep window visible } + if (!SciCall_CanPaste()) { + return; // clipboard has nothing pasteable — keep window visible so the user can act + } _StartupMinimizeMainWnd(hwnd); }