aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2012-04-16 09:05:21 +1000
committernyamatongwe <devnull@localhost>2012-04-16 09:05:21 +1000
commit817b02c3e3a6d82d6f19f77f15f795a072a82a4c (patch)
treef8bbcc7e265ba307903877ca063c5bee8220682d /include
parentdac7fe49689a2edbd42a9b5fed10a94ea05969fc (diff)
downloadscintilla-mirror-817b02c3e3a6d82d6f19f77f15f795a072a82a4c.tar.gz
Case-insensitive auto-completion selection. Bug #3516538.
From Markus Nißl.
Diffstat (limited to 'include')
-rw-r--r--include/Scintilla.h4
-rw-r--r--include/Scintilla.iface10
2 files changed, 14 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index 7a6f58fac..8ff3d3142 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -685,6 +685,10 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
#define SCI_SETCHARSDEFAULT 2444
#define SCI_AUTOCGETCURRENT 2445
#define SCI_AUTOCGETCURRENTTEXT 2610
+#define SC_CASEINSENSITITIVEBEHAVIOUR_RESPECTCASE 0
+#define SC_CASEINSENSITITIVEBEHAVIOUR_IGNORECASE 1
+#define SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR 2634
+#define SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR 2635
#define SCI_ALLOCATE 2446
#define SCI_TARGETASUTF8 2447
#define SCI_SETLENGTHFORENCODE 2448
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index a2a38d51c..e34f79dad 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -1806,6 +1806,16 @@ fun int AutoCGetCurrent=2445(,)
# Returns the length of the item text
fun int AutoCGetCurrentText=2610(, stringresult s)
+enu CaseInsensititiveBehaviour=SC_CASEINSENSITITIVEBEHAVIOUR_
+val SC_CASEINSENSITITIVEBEHAVIOUR_RESPECTCASE=0
+val SC_CASEINSENSITITIVEBEHAVIOUR_IGNORECASE=1
+
+# Set auto-completion case insensitive behaviour to either prefer case-sensitive matches or have no preference.
+set void AutoCSetCaseInsensitiveBehaviour=2634(int behaviour,)
+
+# Get auto-completion case insensitive behaviour.
+get int AutoCGetCaseInsensitiveBehaviour=2635(,)
+
# Enlarge the document to a particular size of text bytes.
fun void Allocate=2446(int bytes,)