summaryrefslogtreecommitdiff
path: root/src/netbeans.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-04-30 18:07:05 +0200
committerBram Moolenaar <Bram@vim.org>2016-04-30 18:07:05 +0200
commit3266c85a44a637862b0ed6e531680c6ab2897ab5 (patch)
tree667b84fb5079098085c7d00294912e85afd9c868 /src/netbeans.c
parent715d285d79a1d97928dd717278e25e6de45d1496 (diff)
downloadvim-git-3266c85a44a637862b0ed6e531680c6ab2897ab5.tar.gz
patch 7.4.1811v7.4.1811
Problem: Netbeans channel gets garbage collected. Solution: Set reference in nb_channel.
Diffstat (limited to 'src/netbeans.c')
-rw-r--r--src/netbeans.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/netbeans.c b/src/netbeans.c
index b0e7d9e0a..a80067f43 100644
--- a/src/netbeans.c
+++ b/src/netbeans.c
@@ -2585,6 +2585,23 @@ netbeans_send_disconnect(void)
}
}
+#if defined(FEAT_EVAL) || defined(PROTO)
+ int
+set_ref_in_nb_channel(int copyID)
+{
+ int abort = FALSE;
+ typval_T tv;
+
+ if (nb_channel != NULL)
+ {
+ tv.v_type = VAR_CHANNEL;
+ tv.vval.v_channel = nb_channel;
+ abort = set_ref_in_item(&tv, copyID, NULL, NULL);
+ }
+ return abort;
+}
+#endif
+
#if defined(FEAT_GUI_X11) || defined(FEAT_GUI_W32) || defined(PROTO)
/*
* Tell netbeans that the window was moved or resized.