When coroutines active don't wait
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user