diff options
| author | Zufu Liu <unknown> | 2020-01-10 11:33:58 +1100 |
|---|---|---|
| committer | Zufu Liu <unknown> | 2020-01-10 11:33:58 +1100 |
| commit | 4ecab243250c8afcbd77271cb74fc8e6a986860b (patch) | |
| tree | e48772715b3780b57f0b2d22816d4f3f79f093f3 /src | |
| parent | 949adf1131a2c308bbb7a549959028d9af4834d8 (diff) | |
| download | scintilla-mirror-4ecab243250c8afcbd77271cb74fc8e6a986860b.tar.gz | |
Backport: Bug [#2132]. Only check for LS/PS/NEL when Unicode line ends turned on.
Backport of changeset 7950:375a05c8edd1.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Document.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index b889a7d9b..903ef0ca9 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -385,7 +385,7 @@ Sci_Position SCI_METHOD Document::LineEnd(Sci_Position line) const { return LineStart(line + 1); } else { Sci::Position position = LineStart(line + 1); - if (SC_CP_UTF8 == dbcsCodePage) { + if (SC_LINE_END_TYPE_UNICODE == cb.GetLineEndTypes()) { const unsigned char bytes[] = { cb.UCharAt(position-3), cb.UCharAt(position-2), |
