From 74c56376cb728acb1c5b900c656142de68811d37 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+orbitalquark@users.noreply.github.com> Date: Thu, 15 Apr 2021 20:34:50 -0400 Subject: Fixed a couple failing unit tests. These were not defects, but "stylistic." --- core/file_io.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/file_io.lua') 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) --- -- cgit v1.2.3