From 4ef4e13eccab132cd2f1a48228e327d04dcbbe98 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 3 Mar 2024 21:49:43 -0500 Subject: Flushed stdin before reading from prompt. --- src/lpm.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/lpm.lua b/src/lpm.lua index 1042da4..bfb84f8 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -524,6 +524,7 @@ local function log_progress_action(message) end end local function prompt(message) + io.stdin:flush() if not ASSUME_YES or not JSON then io.stderr:write(colorize(message .. " [Y/n]: ", "cyan")) if ASSUME_YES then io.stderr:write("Y\n") end -- cgit v1.2.3