aboutsummaryrefslogtreecommitdiff
path: root/files.lua
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-19 20:41:31 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-19 20:42:09 -0700
commit47db74229deaf281ad02c8305c4e4d4c8dbd3d7d (patch)
treefac39ef65240c3de58b68a4f59bb93f2d4e622c6 /files.lua
parent0eff1c77f250e6839086f41af0c79bb3e2e8ea39 (diff)
Fixed some bugs in trailing_line_len() and refactored tree_to_nomsu into
separate inline/not-inline functions.
Diffstat (limited to 'files.lua')
-rw-r--r--files.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/files.lua b/files.lua
index 65a8e1b..ef5c8c1 100644
--- a/files.lua
+++ b/files.lua
@@ -160,6 +160,9 @@ files.walk = function(path, flush_cache)
end
local iter
iter = function(_files, i)
+ if not (_files) then
+ return
+ end
i = i + 1
do
local f = _files[i]