diff options
author | Neil <nyamatongwe@gmail.com> | 2019-05-17 08:30:59 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2019-05-17 08:30:59 +1000 |
commit | e08104d60449701647a0f71f6514e7d47d2d701b (patch) | |
tree | db329ff3b3cea3fcc25abd7de0bb66f17b5b6188 | |
parent | dbb3dbe28d22720639967832cef6f6e8163d472a (diff) | |
download | scintilla-mirror-e08104d60449701647a0f71f6514e7d47d2d701b.tar.gz |
Fixed performance bug where line end positions were reset withot need when
switching from or to Unicode.
Only noticeable on huge files.
-rw-r--r-- | doc/ScintillaHistory.html | 5 | ||||
-rw-r--r-- | src/CellBuffer.cxx | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index cdd31553e..0c1275d89 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -570,6 +570,11 @@ <li> Fix bug where changing identifier sets in lexers preserved previous identifiers. </li> + <li> + Fixed bug where changing to Unicode would rediscover line end positions even if still + sticking to ASCII (not Unicode NEL, LS, PS) line ends. + Only noticeable on huge files with over 100,000 lines. + </li> <li> Changed behaviour of SCI_STYLESETCASE(*,SC_CASE_CAMEL) so that it only treats 'a-zA-Z' as word characters because this covers the feature's intended use (viewing case-insensitive ASCII-only diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 4d8e711ee..f2445751f 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -678,7 +678,6 @@ void CellBuffer::Allocate(Sci::Position newSize) { void CellBuffer::SetUTF8Substance(bool utf8Substance_) { if (utf8Substance != utf8Substance_) { utf8Substance = utf8Substance_; - ResetLineEnds(); } } |