diff options
Diffstat (limited to 'builtin/common')
-rw-r--r-- | builtin/common/misc_helpers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/common/misc_helpers.lua b/builtin/common/misc_helpers.lua index 2ee990e5c..a86631e1d 100644 --- a/builtin/common/misc_helpers.lua +++ b/builtin/common/misc_helpers.lua @@ -178,7 +178,7 @@ function string.split(str, delim, include_empty, max_splits, sep_is_pattern) table_insert(items, s) end pos = npe + 1 - until (max_splits == 0) or (pos > len) + until (max_splits == 0) or (pos > (len + 1)) return items end |