From 5f998b68113dd116c1e938028dddcbcc7425a144 Mon Sep 17 00:00:00 2001 From: Mitchell Foral Date: Wed, 9 Jun 2021 10:51:58 +1000 Subject: Add SCI_PASTERECTANGULAR to insert text like a rectangular paste. --- include/Scintilla.h | 1 + include/Scintilla.iface | 3 +++ include/ScintillaMessages.h | 1 + 3 files changed, 5 insertions(+) (limited to 'include') diff --git a/include/Scintilla.h b/include/Scintilla.h index 123f1ae96..c74332dc3 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -885,6 +885,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_TOGGLECARETSTICKY 2459 #define SCI_SETPASTECONVERTENDINGS 2467 #define SCI_GETPASTECONVERTENDINGS 2468 +#define SCI_PASTERECTANGULAR 2771 #define SCI_SELECTIONDUPLICATE 2469 #define SCI_SETCARETLINEBACKALPHA 2470 #define SCI_GETCARETLINEBACKALPHA 2471 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index dd91bf908..d8e8fc21a 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -2439,6 +2439,9 @@ set void SetPasteConvertEndings=2467(bool convert,) # Get convert-on-paste setting get bool GetPasteConvertEndings=2468(,) +# Paste into a rectangular selection. +fun void PasteRectangular=2771(position length, string text) + # Duplicate the selection. If selection empty duplicate the line containing the caret. fun void SelectionDuplicate=2469(,) diff --git a/include/ScintillaMessages.h b/include/ScintillaMessages.h index 6cf515df9..b5792d809 100644 --- a/include/ScintillaMessages.h +++ b/include/ScintillaMessages.h @@ -581,6 +581,7 @@ enum class Message { ToggleCaretSticky = 2459, SetPasteConvertEndings = 2467, GetPasteConvertEndings = 2468, + PasteRectangular = 2771, SelectionDuplicate = 2469, SetCaretLineBackAlpha = 2470, GetCaretLineBackAlpha = 2471, -- cgit v1.2.3