fix(Prompt): use new `Var` impl

pull/26/head
Iron-E 3 months ago
parent a8bf05f647
commit 71dfc3930c
No known key found for this signature in database
GPG Key ID: 569E791B76A42A1A

@ -60,10 +60,10 @@ function Prompt:get_user_input()
--- @param user_input string --- @param user_input string
local function user_input_callback(user_input) local function user_input_callback(user_input)
if user_input and user_input:len() > 0 then -- the user actually entered something. if user_input and user_input:len() > 0 then -- the user actually entered something.
self.input:set_global(user_input) self.input:set(user_input)
self:execute_instruction(user_input) self:execute_instruction(user_input)
local should_exit = self.exit:get_global() local should_exit = self.exit:get()
if should_exit ~= nil then if should_exit ~= nil then
continue_prompt = not should_exit continue_prompt = not should_exit
end end

Loading…
Cancel
Save