summaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-03-28 19:16:20 +0200
committerBram Moolenaar <Bram@vim.org>2016-03-28 19:16:20 +0200
commit8b877ac38e96424a08a8b8eb713ef4b3cf0064be (patch)
treec72ac7aa90e66ad1e6d6c82fb27ab7d74de3eea9 /src/misc2.c
parentee1f7b3cb71684aaa9bf457e2caf9d02187e6b7c (diff)
downloadvim-8b877ac38e96424a08a8b8eb713ef4b3cf0064be.zip
patch 7.4.1669
Problem: When writing buffer lines to a pipe Vim may block. Solution: Avoid blocking, write more lines later.
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/misc2.c b/src/misc2.c
index ca340b71e..a0cce07f6 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -6230,6 +6230,9 @@ parse_queued_messages(void)
netbeans_parse_messages();
# endif
# ifdef FEAT_JOB_CHANNEL
+ /* Write any buffer lines still to be written. */
+ channel_write_any_lines();
+
/* Process the messages queued on channels. */
channel_parse_messages();
# endif