diff options
author | nyamatongwe <unknown> | 2005-11-09 12:11:43 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2005-11-09 12:11:43 +0000 |
commit | 0cc7d068ca8fb110c4de0886225caf5188b582eb (patch) | |
tree | c60b50aab2db215503b64e655f47270a3a9428c6 /src/Editor.cxx | |
parent | 3ac5c3a6ad55a035df336103693631ae15c9387a (diff) | |
download | scintilla-mirror-0cc7d068ca8fb110c4de0886225caf5188b582eb.tar.gz |
Patch, mostly from Simon Steele, that converts new lines in
pasted text to match document.
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); } |