From a5b8fca36a7a050edfa1c4bb9e91f7722e12f3f6 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 9 Sep 2025 20:50:07 +0300 Subject: added SC_LINE_END_TYPE_NONE: allows ignoring all line ends This can help when using Scintilla views as command line widgets. It can also help when using Scintilla to edit binary files as you don't want to attach special meaning to CR and LF. --- include/Scintilla.h | 1 + include/Scintilla.iface | 1 + include/ScintillaTypes.h | 1 + 3 files changed, 3 insertions(+) (limited to 'include') diff --git a/include/Scintilla.h b/include/Scintilla.h index f7afa4f50..115003c1b 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -1144,6 +1144,7 @@ typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wP #define SCI_SETCARETLINEVISIBLEALWAYS 2655 #define SC_LINE_END_TYPE_DEFAULT 0 #define SC_LINE_END_TYPE_UNICODE 1 +#define SC_LINE_END_TYPE_NONE 2 #define SCI_SETLINEENDTYPESALLOWED 2656 #define SCI_GETLINEENDTYPESALLOWED 2657 #define SCI_GETLINEENDTYPESACTIVE 2658 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 9ba834aed..3e0bbd147 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -3145,6 +3145,7 @@ set void SetCaretLineVisibleAlways=2655(bool alwaysVisible,) enu LineEndType=SC_LINE_END_TYPE_ val SC_LINE_END_TYPE_DEFAULT=0 val SC_LINE_END_TYPE_UNICODE=1 +val SC_LINE_END_TYPE_NONE=2 # Set the line end types that the application wants to use. May not be used if incompatible with lexer or encoding. set void SetLineEndTypesAllowed=2656(LineEndType lineEndBitSet,) diff --git a/include/ScintillaTypes.h b/include/ScintillaTypes.h index 0991a1480..411876f97 100644 --- a/include/ScintillaTypes.h +++ b/include/ScintillaTypes.h @@ -522,6 +522,7 @@ enum class Technology { enum class LineEndType { Default = 0, Unicode = 1, + None = 2, }; enum class RepresentationAppearance { -- cgit v1.2.3