patch 7.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.
diff --git a/src/netbeans.c b/src/netbeans.c
index aadddc2..e326af8 100644
--- a/src/netbeans.c
+++ b/src/netbeans.c
@@ -765,7 +765,8 @@
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);
}
/*