From 60cd87963a771c22eda56365f4059c1fa117e3a3 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 3 May 2020 19:40:15 +1000 Subject: Backport: Feature [feature-requests:1347]. Add InsertLines method to PerLine interface and all implementations. This will allow insertion of lines in batches in a future change set. Added tests for PerLine implementations. Backport of changeset 8227:9fc611fc6848. --- src/Document.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Document.cxx') diff --git a/src/Document.cxx b/src/Document.cxx index 98746f2f2..b3ff671da 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -181,6 +181,13 @@ void Document::InsertLine(Sci::Line line) { } } +void Document::InsertLines(Sci::Line line, Sci::Line lines) { + for (const auto &pl : perLineData) { + if (pl) + pl->InsertLines(line, lines); + } +} + void Document::RemoveLine(Sci::Line line) { for (const std::unique_ptr &pl : perLineData) { if (pl) -- cgit v1.2.3