Mercurial > vim
comparison src/netbeans.c @ 416:3da34f87c760
updated for version 7.0109
author | vimboss |
---|---|
date | Mon, 18 Jul 2005 21:40:44 +0000 |
parents | 7033303ea0c0 |
children | e6e639f0cb97 |
comparison
equal
deleted
inserted
replaced
415:165c628aa9fc | 416:3da34f87c760 |
---|---|
2767 pos.col = col; | 2767 pos.col = col; |
2768 off = pos2off(bufp, &pos); | 2768 off = pos2off(bufp, &pos); |
2769 | 2769 |
2770 /* send the "insert" EVT */ | 2770 /* send the "insert" EVT */ |
2771 newtxt = alloc(newlen + 1); | 2771 newtxt = alloc(newlen + 1); |
2772 STRNCPY(newtxt, txt, newlen); | 2772 vim_strncpy(newtxt, txt, newlen); |
2773 newtxt[newlen] = '\0'; | |
2774 p = nb_quote(newtxt); | 2773 p = nb_quote(newtxt); |
2775 if (p != NULL) | 2774 if (p != NULL) |
2776 { | 2775 { |
2777 buf = alloc(128 + 2*newlen); | 2776 buf = alloc(128 + 2*newlen); |
2778 sprintf((char *)buf, "%d:insert=%d %ld \"%s\"\n", bufno, cmdno, off, p); | 2777 sprintf((char *)buf, "%d:insert=%d %ld \"%s\"\n", bufno, cmdno, off, p); |