aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2020-05-03 19:40:15 +1000
committerNeil <nyamatongwe@gmail.com>2020-05-03 19:40:15 +1000
commit4b450a69452a14fd9af6c426b91d04165fedc94a (patch)
tree47c4806178b43f175f56433b7ed1ebafb0446f1e /src/Document.cxx
parentb24183b5a90b4ebeb951668d48f0e95a1a2819dd (diff)
downloadscintilla-mirror-4b450a69452a14fd9af6c426b91d04165fedc94a.tar.gz
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.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r--src/Document.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index 2382e1c21..ff009ee3e 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -178,6 +178,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<PerLine> &pl : perLineData) {
if (pl)