From 3ca488d0bc3d58b51dfc041d0ab378173313e4b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20J=C3=B6nsson?= Date: Sat, 30 May 2015 10:16:19 +0200 Subject: [PATCH] Also sync when pasting. See Sourceforge #5327. --- PowerEditor/src/NppCommands.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PowerEditor/src/NppCommands.cpp b/PowerEditor/src/NppCommands.cpp index b7ec67f1..98542483 100644 --- a/PowerEditor/src/NppCommands.cpp +++ b/PowerEditor/src/NppCommands.cpp @@ -267,6 +267,7 @@ void Notepad_plus::command(int id) case IDM_EDIT_PASTE: { + LongRunningOperation op; int eolMode = int(_pEditView->execute(SCI_GETEOLMODE)); _pEditView->execute(SCI_PASTE); _pEditView->execute(SCI_CONVERTEOLS, eolMode); @@ -275,6 +276,7 @@ void Notepad_plus::command(int id) case IDM_EDIT_PASTE_BINARY: { + LongRunningOperation op; if (!IsClipboardFormatAvailable(CF_TEXT)) return; @@ -319,6 +321,7 @@ void Notepad_plus::command(int id) case IDM_EDIT_PASTE_AS_RTF: case IDM_EDIT_PASTE_AS_HTML: { + LongRunningOperation op; UINT f = RegisterClipboardFormat(id==IDM_EDIT_PASTE_AS_HTML?CF_HTML:CF_RTF); if (!IsClipboardFormatAvailable(f))