diff options
| author | nyamatongwe <devnull@localhost> | 2003-04-18 10:19:52 +0000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2003-04-18 10:19:52 +0000 |
| commit | 3999fd3df65cf0123df03b9e3004c09a74928926 (patch) | |
| tree | be79d641bf1864cfc90539159dff2769ab5541d3 /src/Editor.cxx | |
| parent | ba0570e86daa7a65e138218c947f151e5ab4e193 (diff) | |
| download | scintilla-mirror-3999fd3df65cf0123df03b9e3004c09a74928926.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); |
