We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf3c928 commit 0de29e3Copy full SHA for 0de29e3
1 file changed
src/MacVim/gui_macvim.m
@@ -2260,19 +2260,13 @@ static int vimModMaskToEventModifierFlags(int mods)
2260
void *
2261
gui_macvim_add_channel(channel_T *channel, int part)
2262
{
2263
- dispatch_queue_t q =
2264
- dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0);
2265
dispatch_source_t s =
2266
dispatch_source_create(DISPATCH_SOURCE_TYPE_READ,
2267
channel->ch_part[part].ch_fd,
2268
0,
2269
- q);
+ dispatch_get_main_queue());
2270
dispatch_source_set_event_handler(s, ^{
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
- });
+ channel_read(channel, part, "gui_macvim_add_channel");
2276
});
2277
dispatch_resume(s);
2278
return s;
0 commit comments