aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-03-03 21:49:43 -0500
committerAdam Harrison <adamdharrison@gmail.com>2024-03-03 21:49:43 -0500
commit4ef4e13eccab132cd2f1a48228e327d04dcbbe98 (patch)
tree53a0eef40496cff79f951055f93c4b2501095cb2
parentbe76033e754020d86a23562fb957e1fff8447c35 (diff)
downloadlite-xl-plugin-manager-4ef4e13eccab132cd2f1a48228e327d04dcbbe98.tar.gz
lite-xl-plugin-manager-4ef4e13eccab132cd2f1a48228e327d04dcbbe98.zip
Flushed stdin before reading from prompt.
-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