diff options
author | Neil <nyamatongwe@gmail.com> | 2020-05-03 19:40:15 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2020-05-03 19:40:15 +1000 |
commit | 4b450a69452a14fd9af6c426b91d04165fedc94a (patch) | |
tree | 47c4806178b43f175f56433b7ed1ebafb0446f1e /src/Document.cxx | |
parent | b24183b5a90b4ebeb951668d48f0e95a1a2819dd (diff) | |
download | scintilla-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.cxx | 7 |
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) |