aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2015-02-22 09:56:46 +1100
committerNeil Hodgson <nyamatongwe@gmail.com>2015-02-22 09:56:46 +1100
commit5bd5e8733e8e3ceb5e2f545adfd6e1b514b33a5c (patch)
treee3c8bd074b021a94d3d4df39796f2d86a3e1af6a /src
parent22aaa509e9f0c07c1d4123b9520d601042432f3e (diff)
downloadscintilla-mirror-5bd5e8733e8e3ceb5e2f545adfd6e1b514b33a5c.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.cxx5
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();