comparison src/channel.c @ 12250:ac8b2f9c1409 v8.0.1005

patch 8.0.1005: terminal without job updates slowly in GUI commit https://github.com/vim/vim/commit/4ab7968aa9d8a624cd56f55b5cad2bedb240eb73 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 27 14:50:47 2017 +0200 patch 8.0.1005: terminal without job updates slowly in GUI Problem: Terminal without job updates slowly in GUI. Solution: Poll for input when a channel has the keep_open flag.
author Christian Brabandt <cb@256bit.org>
date Sun, 27 Aug 2017 15:00:04 +0200
parents 337690672bda
children e1f44e4afe67
comparison
equal deleted inserted replaced
12249:6669330ba85d 12250:ac8b2f9c1409
3550 ch_close_part_on_error(channel, part, TRUE, 3550 ch_close_part_on_error(channel, part, TRUE,
3551 "channel_handle_events"); 3551 "channel_handle_events");
3552 } 3552 }
3553 } 3553 }
3554 } 3554 }
3555 }
3556 # endif
3557
3558 # if defined(FEAT_GUI) || defined(PROTO)
3559 /*
3560 * Return TRUE when there is any channel with a keep_open flag.
3561 */
3562 int
3563 channel_any_keep_open()
3564 {
3565 channel_T *channel;
3566
3567 for (channel = first_channel; channel != NULL; channel = channel->ch_next)
3568 if (channel->ch_keep_open)
3569 return TRUE;
3570 return FALSE;
3555 } 3571 }
3556 # endif 3572 # endif
3557 3573
3558 /* 3574 /*
3559 * Set "channel"/"part" to non-blocking. 3575 * Set "channel"/"part" to non-blocking.