aboutsummaryrefslogtreecommitdiffhomepage
path: root/core/ui.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2020-08-22 17:29:26 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2020-08-22 17:29:26 -0400
commit87af3a999ad376098e3c1ed8e7eab973474b3409 (patch)
treeb3e0662c89aab0a35e7ae1a798b6df1c74b2bfbc /core/ui.lua
parent2835799ac0581f667c9ef9b66fe2b155a5348ae5 (diff)
Do not remove initial 'Untitled' buffer during `ui._print()`.
I am not sure why this has been the case.
Diffstat (limited to 'core/ui.lua')
-rw-r--r--core/ui.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/ui.lua b/core/ui.lua
index c8123d60..6416094a 100644
--- a/core/ui.lua
+++ b/core/ui.lua
@@ -48,7 +48,6 @@ local function _print(buffer_type, ...)
if not ui.tabs then view:split() end
buffer = _G.buffer.new()
buffer._type = buffer_type
- events.emit(events.FILE_OPENED)
elseif not ui.silent_print then
for _, view in ipairs(_VIEWS) do
if view.buffer._type == buffer_type then ui.goto_view(view) break end