diff options
author | 2013-09-16 21:26:43 -0400 | |
---|---|---|
committer | 2013-09-16 21:26:43 -0400 | |
commit | 095980fbbc1f5f4956afdee2802b87ce45f245e7 (patch) | |
tree | f1c214a39b66bd939dde2f7deb26e449f7fe57c9 /core/file_io.lua | |
parent | dbef5c3fa8ca9f842f75a6db1f0aa0fb029a4be6 (diff) |
Removed the `SC_` prefix from constants in `_SCINTILLA.constants`.
Also removed more unused constants.
Diffstat (limited to 'core/file_io.lua')
-rw-r--r-- | core/file_io.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/file_io.lua b/core/file_io.lua index 72584675..17ca2824 100644 --- a/core/file_io.lua +++ b/core/file_io.lua @@ -138,13 +138,13 @@ function io.open_file(filenames) end if not buffer.encoding then error(_L['Encoding conversion failed.']) end end - buffer.code_page = buffer.encoding and buffer.SC_CP_UTF8 or 0 + buffer.code_page = buffer.encoding and buffer.CP_UTF8 or 0 -- Detect EOL mode. local s, e = text:find('\r\n?') if s and e then - buffer.eol_mode = (s == e and buffer.SC_EOL_CR or buffer.SC_EOL_CRLF) + buffer.eol_mode = (s == e and buffer.EOL_CR or buffer.EOL_CRLF) else - buffer.eol_mode = buffer.SC_EOL_LF + buffer.eol_mode = buffer.EOL_LF end buffer:add_text(text, #text) buffer:goto_pos(0) |