aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-04-24 09:32:10 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-04-24 09:32:10 -0400
commit3f3c9838290e9d3df43d94ab389646985aa4613d (patch)
treeb4ccaf9258676b0c09e3c8efb8898191673fb4ee /modules/textadept
parent9e97b8fa01638740f1ab2880a6a72bd1275c6fd6 (diff)
downloadtextadept-3f3c9838290e9d3df43d94ab389646985aa4613d.tar.gz
textadept-3f3c9838290e9d3df43d94ab389646985aa4613d.zip
Renamed `_G.buffer_new()` to `buffer.new()`.
Diffstat (limited to 'modules/textadept')
-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.