diff options
author | nyamatongwe <unknown> | 2002-01-24 11:08:22 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2002-01-24 11:08:22 +0000 |
commit | 01dce90a53e864aa280506904441b9e1efb53da3 (patch) | |
tree | 505c3547e94f997cc2e890233d4e21882ba8fa41 | |
parent | 449c9cedd4861e59fe19d3fd0731688ebbcbb8e1 (diff) | |
download | scintilla-mirror-01dce90a53e864aa280506904441b9e1efb53da3.tar.gz |
Added parameter to WordStartPosition / WordEndPosition to indicate that
only word characters should be considered parts of words.
-rw-r--r-- | doc/ScintillaDoc.html | 4 | ||||
-rw-r--r-- | include/Scintilla.iface | 4 | ||||
-rw-r--r-- | src/Editor.cxx | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 292898603..0988ffc87 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -241,8 +241,8 @@ SCI_GETCURLINE(int textlen, char *text) SCI_LINESONSCREEN SCI_SELECTIONISRECTANGLE SCI_MOVECARETINSIDEVIEW -SCI_WORDENDPOSITION(int position) -SCI_WORDSTARTPOSITION(int position) +SCI_WORDENDPOSITION(int position, bool onlyWordCharacters) +SCI_WORDSTARTPOSITION(int position, bool onlyWordCharacters) </pre> <p> Scintilla maintains a selection which stretches between two points, the anchor and the diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 2f0efa9be..47e244b4f 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -906,10 +906,10 @@ set void SetMouseDwellTime=2264(int periodMilliseconds,) get int GetMouseDwellTime=2265(,) # Get position of start of word -fun int WordStartPosition=2266(position pos,) +fun int WordStartPosition=2266(position pos, bool onlyWordCharacters) # Get position of end of word -fun int WordEndPosition=2267(position pos,) +fun int WordEndPosition=2267(position pos, bool onlyWordCharacters) val SC_WRAP_NONE=0 val SC_WRAP_WORD=1 diff --git a/src/Editor.cxx b/src/Editor.cxx index 18a16dee8..5b33f7b2d 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4348,10 +4348,10 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { return dwellDelay; case SCI_WORDSTARTPOSITION: - return pdoc->ExtendWordSelect(wParam, -1); + return pdoc->ExtendWordSelect(wParam, -1, lParam != 0); case SCI_WORDENDPOSITION: - return pdoc->ExtendWordSelect(wParam, 1); + return pdoc->ExtendWordSelect(wParam, 1, lParam != 0); case SCI_SETWRAPMODE: wrapState = (wParam == SC_WRAP_WORD) ? eWrapWord : eWrapNone; |