1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-17 16:57:39 +00:00

error handling

This commit is contained in:
kepler155c@gmail.com
2018-02-06 08:45:43 -05:00
parent cceb6c8409
commit f16c7b632b
3 changed files with 10 additions and 0 deletions

View File

@@ -516,6 +516,7 @@ local function autocomplete(line)
for _,sItem in pairs(results) do
nMaxLen = math.max(string.len(sItem) + 1, nMaxLen)
end
local w = term.getSize()
local nCols = math.floor(w / nMaxLen)
if #tDirs < nCols then
for _ = #tDirs + 1, nCols do