diff options
author | nyamatongwe <unknown> | 2003-04-18 10:19:52 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-04-18 10:19:52 +0000 |
commit | 3b031e3e5ec28064ce2bb4e67e0d9e48a40ee594 (patch) | |
tree | be79d641bf1864cfc90539159dff2769ab5541d3 /src/Editor.cxx | |
parent | 9a1ee8d945b1aeeb1dab0d7e7d0710194a5cad5b (diff) | |
download | scintilla-mirror-3b031e3e5ec28064ce2bb4e67e0d9e48a40ee594.tar.gz |
New methods for finding the next or previous position taking multi byte
characters into account.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 44399a5fb..2eba8a471 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5199,6 +5199,12 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_GETSEARCHFLAGS: return searchFlags; + case SCI_POSITIONBEFORE: + return pdoc->MovePositionOutsideChar(wParam-1, -1, true); + + case SCI_POSITIONAFTER: + return pdoc->MovePositionOutsideChar(wParam+1, 1, true); + case SCI_LINESCROLL: ScrollTo(topLine + lParam); HorizontalScrollTo(xOffset + wParam * vs.spaceWidth); |