summaryrefslogtreecommitdiff
path: root/src/netbeans.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-07-07 20:45:06 +0200
committerBram Moolenaar <Bram@vim.org>2016-07-07 20:45:06 +0200
commitbf2cc5f36d5ffd5de445e6970602000c7869b65a (patch)
tree5f781b03b478365b69a33b8a37d1bc39b5456c15 /src/netbeans.c
parentdcb170018642ec144cd87d9d9fe076575b8d1263 (diff)
downloadvim-git-bf2cc5f36d5ffd5de445e6970602000c7869b65a.tar.gz
patch 7.4.1998v7.4.1998
Problem: When writing buffer lines to a job there is no NL to NUL conversion. Solution: Make it work symmetrical with writing lines from a job into a buffer.
Diffstat (limited to 'src/netbeans.c')
-rw-r--r--src/netbeans.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/netbeans.c b/src/netbeans.c
index aadddc2c2..e326af8f3 100644
--- a/src/netbeans.c
+++ b/src/netbeans.c
@@ -765,7 +765,8 @@ netbeans_end(void)
nb_send(char *buf, char *fun)
{
if (nb_channel != NULL)
- channel_send(nb_channel, PART_SOCK, (char_u *)buf, fun);
+ channel_send(nb_channel, PART_SOCK, (char_u *)buf,
+ (int)STRLEN(buf), fun);
}
/*