workaround for clients that do not flush clipboard before setting it 2/2

This commit is contained in:
Ivan Sorokin
2023-01-06 15:10:54 +03:00
parent d8706714be
commit b99479f92e
+4
View File
@@ -3560,6 +3560,10 @@ static void do_osc(Terminal *term)
if (OpenClipboard(NULL)) {
// some clients don't flush the buffer before setting data,
// so we'll do that here just in case
EmptyClipboard();
if (!SetClipboardData(fmt, (HANDLE)hData)) {
GlobalFree(hData);
} else {