1
0
forked from aniani/vim

updated for version 7.0047

This commit is contained in:
Bram Moolenaar 2005-02-02 22:55:47 +00:00
parent 2e6aff38e0
commit 24c088a284
2 changed files with 10 additions and 8 deletions

View File

@ -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 VIM REFERENCE MANUAL by Bram Moolenaar
@ -1211,6 +1211,7 @@ The commands are sorted on the non-optional part of their name.
|:loadkeymap| :loadk[eymap] load the following keymaps until EOF |:loadkeymap| :loadk[eymap] load the following keymaps until EOF
|:loadview| :lo[adview] load view for current window from a file |:loadview| :lo[adview] load view for current window from a file
|:lockmarks| :loc[kmarks] following command keeps marks where they are |:lockmarks| :loc[kmarks] following command keeps marks where they are
|:lockvar| :lockv[ar] lock variables
|:ls| :ls list all buffers |:ls| :ls list all buffers
|:lunmap| :lu[nmap] like ":unmap!" but includes Lang-Arg mode |:lunmap| :lu[nmap] like ":unmap!" but includes Lang-Arg mode
|:move| :m[ove] move lines |:move| :m[ove] move lines
@ -1395,6 +1396,7 @@ The commands are sorted on the non-optional part of their name.
|:unhide| :unh[ide] open a window for each loaded file in the |:unhide| :unh[ide] open a window for each loaded file in the
buffer list buffer list
|:unlet| :unl[et] delete variable |:unlet| :unl[et] delete variable
|:unlockvar| :unlo[ckvar] unlock variables
|:unmap| :unm[ap] remove mapping |:unmap| :unm[ap] remove mapping
|:unmenu| :unme[nu] remove menu |:unmenu| :unme[nu] remove menu
|:update| :up[date] write buffer if modified |:update| :up[date] write buffer if modified

View File

@ -1676,20 +1676,20 @@ nb_do_cmd(
return FAIL; return FAIL;
} }
buf->fireChanges = 0; buf->fireChanges = 0;
if (buf->bufp != NULL) if (buf->bufp != NULL && buf->bufp->b_was_netbeans_file)
{ {
if (buf->bufp->b_was_netbeans_file if (!buf->bufp->b_netbeans_file)
&& !buf->bufp->b_netbeans_file)
EMSGN(_("E658: NetBeans connection lost for buffer %ld"), EMSGN(_("E658: NetBeans connection lost for buffer %ld"),
buf->bufp->b_fnum); buf->bufp->b_fnum);
#if 0 /* This breaks Agide. */
else else
{ {
do_bufdel(DOBUF_DEL, (char_u *)"", 1, buf->bufp->b_fnum, /* NetBeans uses stopDocumentListen when it stops editing
buf->bufp->b_fnum, TRUE); * 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)); vim_memset(buf, 0, sizeof(nbbuf_T));
} }
#endif
} }
/* =====================================================================*/ /* =====================================================================*/
} }