aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-09-20 21:11:19 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-09-20 21:11:19 -0400
commit808726ed1beb6cb01cf54e45e7d71a6e0c447f29 (patch)
treec7201c5490f918081133c29619361a83660e6c69
parentd792c28a2dfd519b24b867971e302dd96dd6cee8 (diff)
downloadtextadept-808726ed1beb6cb01cf54e45e7d71a6e0c447f29.tar.gz
textadept-808726ed1beb6cb01cf54e45e7d71a6e0c447f29.zip
No need to set buffer.eol_mode for OSX since Scintilla 2.29; core/gui.lua
-rw-r--r--core/gui.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/gui.lua b/core/gui.lua
index 26d6655a..467864d0 100644
--- a/core/gui.lua
+++ b/core/gui.lua
@@ -120,7 +120,6 @@ local SETLEXERLANGUAGE = _SCINTILLA.functions.set_lexer_language[1]
connect(events.BUFFER_NEW, function()
local function run()
local buffer = buffer
- local c = _SCINTILLA.constants
-- Lexer.
buffer:set_lexer_language('lpeg')
@@ -138,8 +137,7 @@ connect(events.BUFFER_NEW, function()
end
-- Buffer.
- buffer.code_page = c.SC_CP_UTF8
- buffer.eol_mode = not WIN32 and c.SC_EOL_LF or c.SC_EOL_CRLF
+ buffer.code_page = _SCINTILLA.constants.SC_CP_UTF8
if _THEME and #_THEME > 0 then
local ok, err = pcall(dofile, _THEME..'/buffer.lua')