mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-12 16:57:32 -04:00
tab complete fix for nil hints
This commit is contained in:
parent
807dfb7224
commit
e9680ec0e8
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user