From 47db74229deaf281ad02c8305c4e4d4c8dbd3d7d Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 19 Jul 2018 20:41:31 -0700 Subject: Fixed some bugs in trailing_line_len() and refactored tree_to_nomsu into separate inline/not-inline functions. --- files.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'files.lua') 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] -- cgit v1.2.3