diff options
-rw-r--r-- | include/Scintilla.h | 2 | ||||
-rw-r--r-- | include/Scintilla.iface | 6 | ||||
-rw-r--r-- | src/Editor.cxx | 6 |
3 files changed, 14 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h index fc6369ee4..ceb7cc7e4 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -342,6 +342,8 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SC_TIME_FOREVER 10000000 #define SCI_SETMOUSEDWELLTIME 2264 #define SCI_GETMOUSEDWELLTIME 2265 +#define SCI_WORDSTARTPOSITION 2266 +#define SCI_WORDENDPOSITION 2267 #define SCI_LINEDOWN 2300 #define SCI_LINEDOWNEXTEND 2301 #define SCI_LINEUP 2302 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 0a3c98e68..f6d360fc6 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -890,6 +890,12 @@ set void SetMouseDwellTime=2264(int periodMilliseconds,) # Retrieve the time the mouse must sit still to generate a mouse dwell event get int GetMouseDwellTime=2265(,) +# Get position of start of word +fun int WordStartPosition=2266(position pos,) + +# Get position of end of word +fun int WordEndPosition=2267(position pos,) + ## Start of key messages # Move caret down one line. fun void LineDown=2300(,) diff --git a/src/Editor.cxx b/src/Editor.cxx index ce56ee8b5..254a99736 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4107,6 +4107,12 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_GETMOUSEDWELLTIME: return dwellDelay; + case SCI_WORDSTARTPOSITION: + return pdoc->ExtendWordSelect(wParam, -1); + + case SCI_WORDENDPOSITION: + return pdoc->ExtendWordSelect(wParam, 1); + case SCI_GETCOLUMN: return pdoc->GetColumn(wParam); |