aboutsummaryrefslogtreecommitdiff
path: root/core/gui.lua
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 /core/gui.lua
parent9e97b8fa01638740f1ab2880a6a72bd1275c6fd6 (diff)
downloadtextadept-3f3c9838290e9d3df43d94ab389646985aa4613d.tar.gz
textadept-3f3c9838290e9d3df43d94ab389646985aa4613d.zip
Renamed `_G.buffer_new()` to `buffer.new()`.
Diffstat (limited to 'core/gui.lua')
-rw-r--r--core/gui.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/gui.lua b/core/gui.lua
index e9aa763b..a69ccbd6 100644
--- a/core/gui.lua
+++ b/core/gui.lua
@@ -34,7 +34,7 @@ local function _print(buffer_type, ...)
if buffer._type == buffer_type then view:goto_buffer(i) break end
end
if buffer._type ~= buffer_type then
- new_buffer()._type = buffer_type
+ buffer.new()._type = buffer_type
events.emit(events.FILE_OPENED)
end
end