diff --git a/src/main/resources/assets/opencomputers/loot/openos/lib/term.lua b/src/main/resources/assets/opencomputers/loot/openos/lib/term.lua index fe77664c5..1e08e6a43 100644 --- a/src/main/resources/assets/opencomputers/loot/openos/lib/term.lua +++ b/src/main/resources/assets/opencomputers/loot/openos/lib/term.lua @@ -193,8 +193,6 @@ function term.read(history, dobreak, hint, pwchar, filter) inject_filter(handler, filter) inject_mask(cursor, dobreak, pwchar) - -- todo, make blinking work from here - -- handler.blink or w.blink return tty.read(handler, cursor) end diff --git a/src/main/resources/assets/opencomputers/loot/openos/lib/tty.lua b/src/main/resources/assets/opencomputers/loot/openos/lib/tty.lua index 1c4756132..a380d3528 100644 --- a/src/main/resources/assets/opencomputers/loot/openos/lib/tty.lua +++ b/src/main/resources/assets/opencomputers/loot/openos/lib/tty.lua @@ -63,6 +63,7 @@ local function tab_handler(handler, cursor) if cache_size == 1 and cache.i == 0 then -- there was only one solution, and the user is asking for the next handler.cache = hints(cache[1], cursor.index + 1) + if not handler.cache then return end handler.cache.i = -1 cache = handler.cache cache_size = #cache