Skip to content

Commit 98fc47b

Browse files
committed
fix: skip paste board minimizing if nothing to paste
1 parent 63bf704 commit 98fc47b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Notepad3.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1879,6 +1879,9 @@ static VOID CALLBACK _DeferMinimizeTimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEv
18791879
if (IsAsyncKeyDown(VK_CONTROL)) {
18801880
return; // user held Ctrl during the deferral window — keep window visible
18811881
}
1882+
if (!SciCall_CanPaste()) {
1883+
return; // clipboard has nothing pasteable — keep window visible so the user can act
1884+
}
18821885
_StartupMinimizeMainWnd(hwnd);
18831886
}
18841887

0 commit comments

Comments
 (0)