aboutsummaryrefslogtreecommitdiff
path: root/core/gui.lua
diff options
context:
space:
mode:
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