aboutsummaryrefslogtreecommitdiffhomepage
path: root/core/ui.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2017-11-07 17:30:50 -0500
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2017-11-07 17:30:50 -0500
commit6fac4c8c0c5b5254ccd08667bee10d177080225d (patch)
tree88992c45a394af76d6cebc77943f68f2699c9c60 /core/ui.lua
parent3ba9f505933cc9fb7e8ccf6e0cf04740235c2816 (diff)
No need to manually set codepage to UTF-8, now that it's Scintilla's default.
Diffstat (limited to 'core/ui.lua')
-rw-r--r--core/ui.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/ui.lua b/core/ui.lua
index a0474e04..fa45eac9 100644
--- a/core/ui.lua
+++ b/core/ui.lua
@@ -338,7 +338,6 @@ local SETLUASTATE = _SCINTILLA.functions.change_lexer_state[1]
local SETLEXERLANGUAGE = _SCINTILLA.properties.lexer_language[2]
-- Sets default properties for a Scintilla document.
events_connect(events.BUFFER_NEW, function()
- buffer.code_page = buffer.CP_UTF8
buffer.lexer_language = 'lpeg'
buffer:private_lexer_call(SETDIRECTFUNCTION, buffer.direct_function)
buffer:private_lexer_call(SETDIRECTPOINTER, buffer.direct_pointer)