diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-03-03 21:49:43 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-03-03 21:49:43 -0500 |
commit | 4ef4e13eccab132cd2f1a48228e327d04dcbbe98 (patch) | |
tree | 53a0eef40496cff79f951055f93c4b2501095cb2 /src | |
parent | be76033e754020d86a23562fb957e1fff8447c35 (diff) | |
download | lite-xl-plugin-manager-4ef4e13eccab132cd2f1a48228e327d04dcbbe98.tar.gz lite-xl-plugin-manager-4ef4e13eccab132cd2f1a48228e327d04dcbbe98.zip |
Flushed stdin before reading from prompt.
Diffstat (limited to 'src')
-rw-r--r-- | src/lpm.lua | 1 |
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 |