aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2003-04-18 10:19:52 +0000
committernyamatongwe <unknown>2003-04-18 10:19:52 +0000
commit3b031e3e5ec28064ce2bb4e67e0d9e48a40ee594 (patch)
treebe79d641bf1864cfc90539159dff2769ab5541d3 /src/Editor.cxx
parent9a1ee8d945b1aeeb1dab0d7e7d0710194a5cad5b (diff)
downloadscintilla-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.cxx6
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);