aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorMartijn Laan <1092369+martijnlaan@users.noreply.github.com>2024-07-31 21:49:44 +1000
committerMartijn Laan <1092369+martijnlaan@users.noreply.github.com>2024-07-31 21:49:44 +1000
commit0d6fd0c6bc452f41919bbdf8dcc9b3d6fbc83205 (patch)
tree44ea2ccd2b37a031cfda50a93c06ce8cd4acf0b2 /include
parent1cccf5165b891eb95c85932474bb872ab0fbe638 (diff)
downloadscintilla-mirror-0d6fd0c6bc452f41919bbdf8dcc9b3d6fbc83205.tar.gz
Feature [feature-requests:#1524]. Add SCI_LINEINDENT and SCI_LINEDEDENT.
These force the multiline behaviour of SCI_TAB and SCI_BACKTAB.
Diffstat (limited to 'include')
-rw-r--r--include/Scintilla.h2
-rw-r--r--include/Scintilla.iface9
-rw-r--r--include/ScintillaCall.h2
-rw-r--r--include/ScintillaMessages.h2
4 files changed, 14 insertions, 1 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index d97da016f..6fec9be58 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -756,7 +756,9 @@ typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wP
#define SCI_CANCEL 2325
#define SCI_DELETEBACK 2326
#define SCI_TAB 2327
+#define SCI_LINEINDENT 2813
#define SCI_BACKTAB 2328
+#define SCI_LINEDEDENT 2814
#define SCI_NEWLINE 2329
#define SCI_FORMFEED 2330
#define SCI_VCHOME 2331
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index c04d23a80..25201cf47 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -1993,9 +1993,16 @@ fun void DeleteBack=2326(,)
# If more than one line selected, indent the lines.
fun void Tab=2327(,)
-# Dedent the selected lines.
+# Indent the current and selected lines.
+fun void LineIndent=2813(,)
+
+# If selection is empty or all on one line dedent the line if caret is at start, else move caret.
+# If more than one line selected, dedent the lines.
fun void BackTab=2328(,)
+# Dedent the current and selected lines.
+fun void LineDedent=2814(,)
+
# Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
fun void NewLine=2329(,)
diff --git a/include/ScintillaCall.h b/include/ScintillaCall.h
index 02c383883..065a60ac5 100644
--- a/include/ScintillaCall.h
+++ b/include/ScintillaCall.h
@@ -540,7 +540,9 @@ public:
void Cancel();
void DeleteBack();
void Tab();
+ void LineIndent();
void BackTab();
+ void LineDedent();
void NewLine();
void FormFeed();
void VCHome();
diff --git a/include/ScintillaMessages.h b/include/ScintillaMessages.h
index c511720c5..847ec0881 100644
--- a/include/ScintillaMessages.h
+++ b/include/ScintillaMessages.h
@@ -459,7 +459,9 @@ enum class Message {
Cancel = 2325,
DeleteBack = 2326,
Tab = 2327,
+ LineIndent = 2813,
BackTab = 2328,
+ LineDedent = 2814,
NewLine = 2329,
FormFeed = 2330,
VCHome = 2331,