]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
r8338 broke pasting with Shift-Ins and from the context menu on Windows.
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Mon, 29 Dec 2008 20:04:42 +0000 (20:04 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Mon, 29 Dec 2008 20:04:42 +0000 (20:04 +0000)
Divert these to use the request_paste() interface.

[originally from svn r8377]
[r8338 == 54835a9838b7122eaa53d61966ffb8537c9362b0]

windows/window.c

index 7f23767c82cc01e5dec0b0b7ff67d597e7627200..216c17049decf342e6c060b45c0f3ad23d0db798 100644 (file)
@@ -2247,7 +2247,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
            term_copyall(term);
            break;
          case IDM_PASTE:
-           term_do_paste(term);
+           request_paste(NULL);
            break;
          case IDM_CLRSB:
            term_clrsb(term);
@@ -3813,7 +3813,7 @@ static int TranslateKey(UINT message, WPARAM wParam, LPARAM lParam,
            return 0;
        }
        if (wParam == VK_INSERT && shift_state == 1) {
-           term_do_paste(term);
+           request_paste(NULL);
            return 0;
        }
        if (left_alt && wParam == VK_F4 && cfg.alt_f4) {