aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CellBuffer.cxx5
-rw-r--r--src/RunStyles.cxx2
2 files changed, 2 insertions, 5 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx
index 643929352..3bdbd7730 100644
--- a/src/CellBuffer.cxx
+++ b/src/CellBuffer.cxx
@@ -338,10 +338,7 @@ CellBuffer::CellBuffer(bool hasStyles_, bool largeDocument_) :
utf8LineEnds = LineEndType::Default;
collectingUndo = true;
uh = std::make_unique<UndoHistory>();
- if (largeDocument)
- plv = std::make_unique<LineVector<Sci::Position>>();
- else
- plv = std::make_unique<LineVector<int>>();
+ plv = std::make_unique<LineVector<Sci::Position>>();
}
CellBuffer::~CellBuffer() noexcept = default;
diff --git a/src/RunStyles.cxx b/src/RunStyles.cxx
index 848670ba9..508ab5ba4 100644
--- a/src/RunStyles.cxx
+++ b/src/RunStyles.cxx
@@ -321,7 +321,7 @@ void RunStyles<DISTANCE, STYLE>::Check() const {
template class Scintilla::Internal::RunStyles<int, int>;
template class Scintilla::Internal::RunStyles<int, char>;
-#if (PTRDIFF_MAX != INT_MAX) || defined(__HAIKU__)
+#if (PTRDIFF_MAX != INT_MAX) || defined(__HAIKU__) || defined(__NetBSD__)
template class Scintilla::Internal::RunStyles<ptrdiff_t, int>;
template class Scintilla::Internal::RunStyles<ptrdiff_t, char>;
#endif