diff options
author | nyamatongwe <unknown> | 2001-02-06 02:16:11 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-02-06 02:16:11 +0000 |
commit | c274332afa3c5d28ae43fa280d60fa7c52d5666b (patch) | |
tree | d776419273883b6292745c8ce829638f827d7766 /src/Editor.cxx | |
parent | a90a236a6fe722717bdecb89d98dde6e961a5ddb (diff) | |
download | scintilla-mirror-c274332afa3c5d28ae43fa280d60fa7c52d5666b.tar.gz |
Made SCI_CANPASTE and EM_CANPASTE work correctly using
IsClipboardFormatAvailable on Windows.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index c638ca5b3..67d8ea856 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1643,6 +1643,10 @@ void Editor::PasteRectangular(int pos, const char *ptr, int len) { SetEmptySelection(insertPos); } +bool Editor::CanPaste() { + return !pdoc->IsReadOnly(); +} + void Editor::Clear() { if (currentPos == anchor) { DelChar(); @@ -3525,7 +3529,7 @@ long Editor::WndProc(unsigned int iMessage, unsigned long wParam, long lParam) { case EM_CANPASTE: case SCI_CANPASTE: - return !pdoc->IsReadOnly(); + return CanPaste(); case EM_CHARFROMPOS: { if (lParam == 0) |