diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2015-02-22 09:56:46 +1100 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2015-02-22 09:56:46 +1100 |
commit | 1fc21cb6664d3633602636cfc43ecbdb39b591a7 (patch) | |
tree | dd45653f7c8b73376112fff1e6d116a1a2db82b7 /src | |
parent | e3dcaa477741dba922e3daf270ff2ecb42b5311c (diff) | |
download | scintilla-mirror-1fc21cb6664d3633602636cfc43ecbdb39b591a7.tar.gz |
Added SCI_SETTARGETRANGE method to set both the start and end of the target.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 382e173c3..5935037d6 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5561,6 +5561,11 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_GETTARGETEND: return targetEnd; + case SCI_SETTARGETRANGE: + targetStart = static_cast<int>(wParam); + targetEnd = static_cast<int>(lParam); + break; + case SCI_TARGETFROMSELECTION: if (sel.MainCaret() < sel.MainAnchor()) { targetStart = sel.MainCaret(); |