aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/textadept/keys.lua2
-rw-r--r--modules/textadept/menu.lua2
-rw-r--r--modules/textadept/session.lua2
3 files changed, 3 insertions, 3 deletions
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua
index 30076eaf..b2633783 100644
--- a/modules/textadept/keys.lua
+++ b/modules/textadept/keys.lua
@@ -364,7 +364,7 @@ local utils = M.utils
-- Control, Meta, and 'a' = 'cma'
-- File.
-keys[not OSX and (not CURSES and 'cn' or 'cmn') or 'mn'] = new_buffer
+keys[not OSX and (not CURSES and 'cn' or 'cmn') or 'mn'] = buffer.new
keys[not OSX and 'co' or 'mo'] = io.open_file
keys[not OSX and not CURSES and 'cao' or 'cmo'] = io.open_recent_file
keys[not OSX and (not CURSES and 'cO' or 'mo') or 'mO'] = buffer.reload
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua
index 4416a17c..86bbc5ae 100644
--- a/modules/textadept/menu.lua
+++ b/modules/textadept/menu.lua
@@ -38,7 +38,7 @@ local SEPARATOR, c = {''}, _SCINTILLA.constants
-- @name menubar
M.menubar = {
{ title = _L['_File'],
- {_L['_New'], new_buffer},
+ {_L['_New'], buffer.new},
{_L['_Open'], io.open_file},
{_L['Open _Recent...'], io.open_recent_file},
{_L['Re_load'], buffer.reload},
diff --git a/modules/textadept/session.lua b/modules/textadept/session.lua
index 9f21a65a..98a5c56c 100644
--- a/modules/textadept/session.lua
+++ b/modules/textadept/session.lua
@@ -62,7 +62,7 @@ function M.load(filename)
not_found[#not_found + 1] = filename
end
else
- new_buffer()._type = filename
+ buffer.new()._type = filename
events.emit(events.FILE_OPENED, filename)
end
-- Restore saved buffer selection and view.