aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
diff options
context:
space:
mode:
authorZufu Liu <unknown>2022-07-17 14:09:52 +1000
committerZufu Liu <unknown>2022-07-17 14:09:52 +1000
commitf6a9859562ddeb04e882e4a3d15adbf64345452a (patch)
treef814dc8f40ea08c5d01d110ffb69a491806eea36 /src/Document.cxx
parent4e0683e5531aa99958fc742476b6150ec2595c72 (diff)
downloadscintilla-mirror-f6a9859562ddeb04e882e4a3d15adbf64345452a.tar.gz
Feature [feature-requests:#1441] Line state optimized to avoid excess allocations
by always allocating for every line.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r--src/Document.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index 8e80502e0..5fd2f79e5 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -2424,7 +2424,7 @@ void Document::SetLexInterface(std::unique_ptr<LexInterface> pLexInterface) noex
}
int SCI_METHOD Document::SetLineState(Sci_Position line, int state) {
- const int statePrevious = States()->SetLineState(line, state);
+ const int statePrevious = States()->SetLineState(line, state, LinesTotal());
if (state != statePrevious) {
const DocModification mh(ModificationFlags::ChangeLineState, LineStart(line), 0, 0, nullptr,
static_cast<Sci::Line>(line));