aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lpm.lua1
1 files changed, 1 insertions, 0 deletions
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