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. --- test/simpleTests.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/simpleTests.py b/test/simpleTests.py index 63a752da4..82ed84810 100644 --- a/test/simpleTests.py +++ b/test/simpleTests.py @@ -535,6 +535,12 @@ class TestSimple(unittest.TestCase): self.ed.Clear() self.assertEquals(self.ed.Contents(), b"1c") + def testPasteRectangular(self): + self.ed.AddText(5, b"a\nb\nc") + self.ed.SetSel(0,0) + self.ed.PasteRectangular(3, b"1\n2") + self.assertEquals(self.ed.Contents(), b"1a\n2b\nc") + def testCopyAllowLine(self): lineEndType = self.ed.EOLMode self.ed.EOLMode = self.ed.SC_EOL_LF -- cgit v1.2.3