aboutsummaryrefslogtreecommitdiffhomepage
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/file_io.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/file_io.lua b/core/file_io.lua
index 627403e1..9dde8550 100644
--- a/core/file_io.lua
+++ b/core/file_io.lua
@@ -300,8 +300,8 @@ end)
-- Closes the initial "Untitled" buffer when another buffer is opened.
events.connect(events.FILE_OPENED, function()
if #_BUFFERS > 2 then return end
- local first = _BUFFERS[1]
- if not (first.filename or first._type or first.modify) then first:close() end
+ local buf = _BUFFERS[1]
+ if not (buf.filename or buf._type or buf.modify) then buf:close() end
end)
---