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 | 60cd87963a771c22eda56365f4059c1fa117e3a3 (patch) | |
| tree | 640b935cdb4b5587ee9b0c1de08f42560c0ba387 /src/Document.cxx | |
| parent | 69db1ffbcab52381b4f6e04bb5cb64eeba838225 (diff) | |
| download | scintilla-mirror-60cd87963a771c22eda56365f4059c1fa117e3a3.tar.gz | |
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.
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 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<PerLine> &pl : perLineData) { if (pl) |
