aboutsummaryrefslogtreecommitdiff
path: root/modules/cpp/commands.lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/cpp/commands.lua')
-rw-r--r--modules/cpp/commands.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/cpp/commands.lua b/modules/cpp/commands.lua
index d1e2fd17..65c3f8af 100644
--- a/modules/cpp/commands.lua
+++ b/modules/cpp/commands.lua
@@ -12,7 +12,9 @@ if type(keys) == 'table' then
local m_editing = _m.textadept.editing
keys.cpp = {
al = {
- m = { textadept.io.open, _HOME..'/modules/cpp/init.lua' },
+ m = { textadept.io.open,
+ textadept.iconv(_HOME..'/modules/cpp/init.lua',
+ 'UTF-8', _CHARSET) },
},
['s\n'] = { function()
buffer:line_end()