Merge pull request #17199 from glacambre/fix_9358

fix(--headless): do not block on press-enter prompts when no UI
This commit is contained in:
bfredl
2022-02-05 16:47:51 +01:00
committed by GitHub
2 changed files with 19 additions and 0 deletions

View File

@@ -1094,6 +1094,10 @@ void wait_return(int redraw)
return;
}
if (headless_mode && !ui_active()) {
return;
}
/*
* When inside vgetc(), we can't wait for a typed character at all.
* With the global command (and some others) we only need one return at