Fix to NSTextView issue where it goes into an infinite loop if the event is returned as nil

This commit is contained in:
Gregory John Casamento 2024-05-01 19:19:45 -04:00
parent b9c5ba35be
commit bec2392e33

View file

@ -5844,7 +5844,7 @@ other than copy/paste or dragging. */
untilDate: [NSDate distantFuture]
inMode: NSEventTrackingRunLoopMode
dequeue: YES];
} while ([currentEvent type] != NSLeftMouseUp);
} while ([currentEvent type] != NSLeftMouseUp && currentEvent != nil);
if (gettingPeriodic)
{