File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -2260,13 +2260,19 @@ static int vimModMaskToEventModifierFlags(int mods)
2260
2260
void *
2261
2261
gui_macvim_add_channel (channel_T *channel, int part)
2262
2262
{
2263
+ dispatch_queue_t q =
2264
+ dispatch_get_global_queue (DISPATCH_QUEUE_PRIORITY_HIGH, 0 );
2263
2265
dispatch_source_t s =
2264
2266
dispatch_source_create (DISPATCH_SOURCE_TYPE_READ,
2265
2267
channel->ch_part [part].ch_fd ,
2266
2268
0 ,
2267
- dispatch_get_main_queue () );
2269
+ q );
2268
2270
dispatch_source_set_event_handler (s, ^{
2269
- channel_read (channel, part, " gui_macvim_add_channel" );
2271
+ dispatch_suspend (s);
2272
+ dispatch_async (dispatch_get_main_queue (), ^{
2273
+ channel_read (channel, part, " gui_macvim_add_channel" );
2274
+ dispatch_resume (s);
2275
+ });
2270
2276
});
2271
2277
dispatch_resume (s);
2272
2278
return s;
You can’t perform that action at this time.
0 commit comments