aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-08-27 10:42:47 +1000
committernyamatongwe <unknown>2011-08-27 10:42:47 +1000
commitf90956e86fd0cf150b241838f1b03870e043d9cb (patch)
tree02397ec706baeabdd9e38e11f047ac94a60898e6 /src
parentd0443a3bd7c34e204b4e918a4184f0fb18f6cd79 (diff)
downloadscintilla-mirror-f90956e86fd0cf150b241838f1b03870e043d9cb.tar.gz
Basing default eol mode on _WIN32 instead of __unix__ as OS X does
not define __unix__.
Diffstat (limited to 'src')
-rw-r--r--src/Document.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index 2729d3d7b..5c05aa5e0 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -87,10 +87,10 @@ void LexInterface::Colourise(int start, int end) {
Document::Document() {
refCount = 0;
-#ifdef __unix__
- eolMode = SC_EOL_LF;
-#else
+#ifdef _WIN32
eolMode = SC_EOL_CRLF;
+#else
+ eolMode = SC_EOL_LF;
#endif
dbcsCodePage = 0;
stylingBits = 5;