diff options
author | Neil <nyamatongwe@gmail.com> | 2013-08-20 14:57:56 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2013-08-20 14:57:56 +1000 |
commit | 70acfa623be189df50b42a7402085e782341fec2 (patch) | |
tree | 609f95d4dc215476e240d62bf4ef5b0a12ec0fe4 /include | |
parent | e88c427ffcf8731edf9dc0957c28c3e0ec78bda5 (diff) | |
download | scintilla-mirror-70acfa623be189df50b42a7402085e782341fec2.tar.gz |
Added PositionRelative to optimize navigation by character.
Diffstat (limited to 'include')
-rw-r--r-- | include/Scintilla.h | 1 | ||||
-rw-r--r-- | include/Scintilla.iface | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h index 5bfcfc266..405cc81f7 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -673,6 +673,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_PARAUPEXTEND 2416 #define SCI_POSITIONBEFORE 2417 #define SCI_POSITIONAFTER 2418 +#define SCI_POSITIONRELATIVE 2670 #define SCI_COPYRANGE 2419 #define SCI_COPYTEXT 2420 #define SC_SEL_STREAM 0 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index f7880a035..7909f2084 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -1756,6 +1756,10 @@ fun position PositionBefore=2417(position pos,) # page into account. Maximum value returned is the last position in the document. fun position PositionAfter=2418(position pos,) +# Given a valid document position, return a position that differs in a number +# of characters. Returned value is always between 0 and last position in document. +fun position PositionRelative=2670(position pos, int relative) + # Copy a range of text to the clipboard. Positions are clipped into the document. fun void CopyRange=2419(position start, position end) |