summaryrefslogtreecommitdiff
path: root/src/netbeans.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-11-14 17:29:46 +0000
committerBram Moolenaar <Bram@vim.org>2006-11-14 17:29:46 +0000
commitc65c49129502ce96f61137ffacd786a0eec02b52 (patch)
tree5f0b755d13dcf325fbd0d8fdc017f4b598d823f9 /src/netbeans.c
parent84212825ed74d16483061f35f0e2e6a05fd33a6e (diff)
downloadvim-git-c65c49129502ce96f61137ffacd786a0eec02b52.tar.gz
updated for version 7.0-163v7.0.163
Diffstat (limited to 'src/netbeans.c')
-rw-r--r--src/netbeans.c25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/netbeans.c b/src/netbeans.c
index 409580ad4..a5c504ad2 100644
--- a/src/netbeans.c
+++ b/src/netbeans.c
@@ -61,7 +61,7 @@
/* The first implementation (working only with Netbeans) returned "1.1". The
* protocol implemented here also supports A-A-P. */
-static char *ExtEdProtocolVersion = "2.3";
+static char *ExtEdProtocolVersion = "2.4";
static long pos2off __ARGS((buf_T *, pos_T *));
static pos_T *off2pos __ARGS((buf_T *, long));
@@ -1271,6 +1271,29 @@ nb_do_cmd(
nb_reply_text(cmdno, text);
/* =====================================================================*/
}
+ else if (streq((char *)cmd, "getAnno"))
+ {
+ long linenum = 0;
+#ifdef FEAT_SIGNS
+ if (buf == NULL || buf->bufp == NULL)
+ {
+ nbdebug((" null bufp in getAnno"));
+ EMSG("E652: null bufp in getAnno");
+ retval = FAIL;
+ }
+ else
+ {
+ int serNum;
+
+ cp = (char *)args;
+ serNum = strtol(cp, &cp, 10);
+ /* If the sign isn't found linenum will be zero. */
+ linenum = (long)buf_findsign(buf->bufp, serNum);
+ }
+#endif
+ nb_reply_nr(cmdno, linenum);
+/* =====================================================================*/
+ }
else if (streq((char *)cmd, "getLength"))
{
long len = 0;