From 5bd5e8733e8e3ceb5e2f545adfd6e1b514b33a5c Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Sun, 22 Feb 2015 09:56:46 +1100 Subject: Added SCI_SETTARGETRANGE method to set both the start and end of the target. --- src/Editor.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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(wParam); + targetEnd = static_cast(lParam); + break; + case SCI_TARGETFROMSELECTION: if (sel.MainCaret() < sel.MainAnchor()) { targetStart = sel.MainCaret(); -- cgit v1.2.3