When coroutines active don't wait

This commit is contained in:
krzosa
2025-12-23 09:41:03 +01:00
parent c67db4e495
commit 74ae806978
6 changed files with 5 additions and 18 deletions

View File

@@ -605,13 +605,14 @@ void MainLoop() {
}
WaitForEvents = ConfigWaitForEvents;
if (IsDocumentSelectionValid() || IsScrollbarSelectionValid() || ActiveProcesses.len) {
if (IsDocumentSelectionValid() || IsScrollbarSelectionValid() || ActiveProcesses.len || ActiveCoroutines.len) {
WaitForEvents = false;
}
// This shouldn't matter to the state of the program, only appearance for
// the user
{
ProfileScope(SetWindowTitle);
Window *window = GetActiveWind();
View *view = GetView(window->active_view);
Buffer *buffer = GetBuffer(view->active_buffer);