diff options
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index bf94fb8ed..85212aa80 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -424,6 +424,8 @@ Editor::Editor() { wrapVisualStartIndent = 0; actualWrapVisualStartIndent = 0; + convertPastes = true; + hsStart = -1; hsEnd = -1; @@ -7241,6 +7243,13 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { InvalidateStyleRedraw(); break; + case SCI_SETPASTECONVERTENDINGS: + convertPastes = wParam != 0; + break; + + case SCI_GETPASTECONVERTENDINGS: + return convertPastes ? 1 : 0; + default: return DefWndProc(iMessage, wParam, lParam); } |