# HG changeset patch # User vimboss # Date 1107384947 0 # Node ID c837baf03d436d3c84b095a025e20118cff4e6c4 # Parent 40a0699b6c62f93e58ae233fcdfd395bbc1bc80f updated for version 7.0047 diff --git a/runtime/doc/index.txt b/runtime/doc/index.txt --- a/runtime/doc/index.txt +++ b/runtime/doc/index.txt @@ -1,4 +1,4 @@ -*index.txt* For Vim version 7.0aa. Last change: 2004 Dec 29 +*index.txt* For Vim version 7.0aa. Last change: 2005 Jan 31 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1211,6 +1211,7 @@ The commands are sorted on the non-optio |:loadkeymap| :loadk[eymap] load the following keymaps until EOF |:loadview| :lo[adview] load view for current window from a file |:lockmarks| :loc[kmarks] following command keeps marks where they are +|:lockvar| :lockv[ar] lock variables |:ls| :ls list all buffers |:lunmap| :lu[nmap] like ":unmap!" but includes Lang-Arg mode |:move| :m[ove] move lines @@ -1395,6 +1396,7 @@ The commands are sorted on the non-optio |:unhide| :unh[ide] open a window for each loaded file in the buffer list |:unlet| :unl[et] delete variable +|:unlockvar| :unlo[ckvar] unlock variables |:unmap| :unm[ap] remove mapping |:unmenu| :unme[nu] remove menu |:update| :up[date] write buffer if modified diff --git a/src/netbeans.c b/src/netbeans.c --- a/src/netbeans.c +++ b/src/netbeans.c @@ -1676,20 +1676,20 @@ nb_do_cmd( return FAIL; } buf->fireChanges = 0; - if (buf->bufp != NULL) + if (buf->bufp != NULL && buf->bufp->b_was_netbeans_file) { - if (buf->bufp->b_was_netbeans_file - && !buf->bufp->b_netbeans_file) + if (!buf->bufp->b_netbeans_file) EMSGN(_("E658: NetBeans connection lost for buffer %ld"), buf->bufp->b_fnum); -#if 0 /* This breaks Agide. */ else { - do_bufdel(DOBUF_DEL, (char_u *)"", 1, buf->bufp->b_fnum, - buf->bufp->b_fnum, TRUE); + /* NetBeans uses stopDocumentListen when it stops editing + * a file. It then expects the buffer in Vim to + * disappear. */ + do_bufdel(DOBUF_DEL, (char_u *)"", 1, + buf->bufp->b_fnum, buf->bufp->b_fnum, TRUE); vim_memset(buf, 0, sizeof(nbbuf_T)); } -#endif } /* =====================================================================*/ }