diff options
author | mitchell <70453897+orbitalquark@users.noreply.github.com> | 2020-09-27 11:57:13 -0400 |
---|---|---|
committer | mitchell <70453897+orbitalquark@users.noreply.github.com> | 2020-09-27 11:57:13 -0400 |
commit | a71ec5d1a41162813cbf5bd17a9db93a67005574 (patch) | |
tree | 076cb5dcbe88b970af88115f1556950692696cc9 /core/file_io.lua | |
parent | a40d3c6e039359d5e53f2eeb68bf1ad92de9f004 (diff) |
Fixed `io.quick_open()` not doing anything when file limit was exceeded.
Diffstat (limited to 'core/file_io.lua')
-rw-r--r-- | core/file_io.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/file_io.lua b/core/file_io.lua index 71dd5af3..09446139 100644 --- a/core/file_io.lua +++ b/core/file_io.lua @@ -419,7 +419,7 @@ function io.quick_open(paths, filter, opts) local utf8_list = {} for i = 1, #paths do for filename in lfs.walk(paths[i], filter or lfs.default_filter) do - if #utf8_list >= io.quick_open_max then return false end + if #utf8_list >= io.quick_open_max then break end utf8_list[#utf8_list + 1] = filename:iconv('UTF-8', _CHARSET) end end |