aboutsummaryrefslogtreecommitdiffhomepage
path: root/core
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2021-04-15 20:34:50 -0400
committerGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2021-04-15 20:34:50 -0400
commit74c56376cb728acb1c5b900c656142de68811d37 (patch)
tree043e0acbb1eaaed87589a79cd0d52ef8998cca39 /core
parenta1843428319d1f96acaaf42e81e701de9988d06f (diff)
Fixed a couple failing unit tests.
These were not defects, but "stylistic."
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)
---