comparison src/netbeans.c @ 15209:3a99b2e6d136 v8.1.0614

patch 8.1.0614: placing signs can be complicated commit https://github.com/vim/vim/commit/162b71479bd4dcdb3a2ef9198a1444f6f99e6843 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 21 15:17:36 2018 +0100 patch 8.1.0614: placing signs can be complicated Problem: Placing signs can be complicated. Solution: Add functions for defining and placing signs. Introduce a group name to avoid different plugins using the same signs. (Yegappan Lakshmanan, closes #3652)
author Bram Moolenaar <Bram@vim.org>
date Fri, 21 Dec 2018 15:30:07 +0100
parents 27b9a84395b5
children 890203d87ee5
comparison
equal deleted inserted replaced
15208:acf68008ca43 15209:3a99b2e6d136
1040 int serNum; 1040 int serNum;
1041 1041
1042 cp = (char *)args; 1042 cp = (char *)args;
1043 serNum = strtol(cp, &cp, 10); 1043 serNum = strtol(cp, &cp, 10);
1044 /* If the sign isn't found linenum will be zero. */ 1044 /* If the sign isn't found linenum will be zero. */
1045 linenum = (long)buf_findsign(buf->bufp, serNum); 1045 linenum = (long)buf_findsign(buf->bufp, serNum, NULL);
1046 } 1046 }
1047 #endif 1047 #endif
1048 nb_reply_nr(cmdno, linenum); 1048 nb_reply_nr(cmdno, linenum);
1049 /* =====================================================================*/ 1049 /* =====================================================================*/
1050 } 1050 }
1254 int id = buf_findsign_id(buf->bufp, (linenr_T)i); 1254 int id = buf_findsign_id(buf->bufp, (linenr_T)i);
1255 if (id > 0) 1255 if (id > 0)
1256 { 1256 {
1257 nbdebug((" Deleting sign %d on line %d\n", 1257 nbdebug((" Deleting sign %d on line %d\n",
1258 id, i)); 1258 id, i));
1259 buf_delsign(buf->bufp, id); 1259 buf_delsign(buf->bufp, id, NULL);
1260 } 1260 }
1261 else 1261 else
1262 { 1262 {
1263 nbdebug((" No sign on line %d\n", i)); 1263 nbdebug((" No sign on line %d\n", i));
1264 } 1264 }