|
Karsten Hopp |
7f6284 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
7f6284 |
Subject: Patch 7.2.047
|
|
Karsten Hopp |
7f6284 |
Fcc: outbox
|
|
Karsten Hopp |
7f6284 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
7f6284 |
Mime-Version: 1.0
|
|
Karsten Hopp |
7f6284 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
7f6284 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
7f6284 |
------------
|
|
Karsten Hopp |
7f6284 |
|
|
Karsten Hopp |
7f6284 |
Patch 7.2.047
|
|
Karsten Hopp |
7f6284 |
Problem: Starting Vim with the -nb argument while it's not supported causes
|
|
Karsten Hopp |
7f6284 |
the other side to hang.
|
|
Karsten Hopp |
7f6284 |
Solution: When -nb is used while it's not supported exit Vim. (Xavier de
|
|
Karsten Hopp |
7f6284 |
Gaye)
|
|
Karsten Hopp |
7f6284 |
Files: src/main.c, src/vim.h
|
|
Karsten Hopp |
7f6284 |
|
|
Karsten Hopp |
7f6284 |
|
|
Karsten Hopp |
7f6284 |
*** ../vim-7.2.046/src/main.c Sat Nov 15 14:10:23 2008
|
|
Karsten Hopp |
7f6284 |
--- src/main.c Thu Nov 20 14:09:27 2008
|
|
Karsten Hopp |
7f6284 |
***************
|
|
Karsten Hopp |
7f6284 |
*** 1510,1516 ****
|
|
Karsten Hopp |
7f6284 |
early_arg_scan(parmp)
|
|
Karsten Hopp |
7f6284 |
mparm_T *parmp;
|
|
Karsten Hopp |
7f6284 |
{
|
|
Karsten Hopp |
7f6284 |
! #if defined(FEAT_XCLIPBOARD) || defined(FEAT_CLIENTSERVER)
|
|
Karsten Hopp |
7f6284 |
int argc = parmp->argc;
|
|
Karsten Hopp |
7f6284 |
char **argv = parmp->argv;
|
|
Karsten Hopp |
7f6284 |
int i;
|
|
Karsten Hopp |
7f6284 |
--- 1510,1517 ----
|
|
Karsten Hopp |
7f6284 |
early_arg_scan(parmp)
|
|
Karsten Hopp |
7f6284 |
mparm_T *parmp;
|
|
Karsten Hopp |
7f6284 |
{
|
|
Karsten Hopp |
7f6284 |
! #if defined(FEAT_XCLIPBOARD) || defined(FEAT_CLIENTSERVER) \
|
|
Karsten Hopp |
7f6284 |
! || !defined(FEAT_NETBEANS_INTG)
|
|
Karsten Hopp |
7f6284 |
int argc = parmp->argc;
|
|
Karsten Hopp |
7f6284 |
char **argv = parmp->argv;
|
|
Karsten Hopp |
7f6284 |
int i;
|
|
Karsten Hopp |
7f6284 |
***************
|
|
Karsten Hopp |
7f6284 |
*** 1582,1587 ****
|
|
Karsten Hopp |
7f6284 |
--- 1583,1596 ----
|
|
Karsten Hopp |
7f6284 |
else if (STRICMP(argv[i], "--echo-wid") == 0)
|
|
Karsten Hopp |
7f6284 |
echo_wid_arg = TRUE;
|
|
Karsten Hopp |
7f6284 |
# endif
|
|
Karsten Hopp |
7f6284 |
+ # ifndef FEAT_NETBEANS_INTG
|
|
Karsten Hopp |
7f6284 |
+ else if (strncmp(argv[i], "-nb", (size_t)3) == 0)
|
|
Karsten Hopp |
7f6284 |
+ {
|
|
Karsten Hopp |
7f6284 |
+ mch_errmsg(_("'-nb' cannot be used: not enabled at compile time\n"));
|
|
Karsten Hopp |
7f6284 |
+ mch_exit(2);
|
|
Karsten Hopp |
7f6284 |
+ }
|
|
Karsten Hopp |
7f6284 |
+ # endif
|
|
Karsten Hopp |
7f6284 |
+
|
|
Karsten Hopp |
7f6284 |
}
|
|
Karsten Hopp |
7f6284 |
#endif
|
|
Karsten Hopp |
7f6284 |
}
|
|
Karsten Hopp |
7f6284 |
*** ../vim-7.2.046/src/vim.h Thu Nov 20 10:26:19 2008
|
|
Karsten Hopp |
7f6284 |
--- src/vim.h Thu Nov 20 12:06:14 2008
|
|
Karsten Hopp |
7f6284 |
***************
|
|
Karsten Hopp |
7f6284 |
*** 1986,1991 ****
|
|
Karsten Hopp |
7f6284 |
--- 1986,1994 ----
|
|
Karsten Hopp |
7f6284 |
# endif
|
|
Karsten Hopp |
7f6284 |
#endif
|
|
Karsten Hopp |
7f6284 |
|
|
Karsten Hopp |
7f6284 |
+ #ifndef FEAT_NETBEANS_INTG
|
|
Karsten Hopp |
7f6284 |
+ # undef NBDEBUG
|
|
Karsten Hopp |
7f6284 |
+ #endif
|
|
Karsten Hopp |
7f6284 |
#ifdef NBDEBUG /* Netbeans debugging. */
|
|
Karsten Hopp |
7f6284 |
# include "nbdebug.h"
|
|
Karsten Hopp |
7f6284 |
#else
|
|
Karsten Hopp |
7f6284 |
*** ../vim-7.2.046/src/version.c Thu Nov 20 11:55:53 2008
|
|
Karsten Hopp |
7f6284 |
--- src/version.c Thu Nov 20 14:07:57 2008
|
|
Karsten Hopp |
7f6284 |
***************
|
|
Karsten Hopp |
7f6284 |
*** 678,679 ****
|
|
Karsten Hopp |
7f6284 |
--- 678,681 ----
|
|
Karsten Hopp |
7f6284 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
7f6284 |
+ /**/
|
|
Karsten Hopp |
7f6284 |
+ 47,
|
|
Karsten Hopp |
7f6284 |
/**/
|
|
Karsten Hopp |
7f6284 |
|
|
Karsten Hopp |
7f6284 |
--
|
|
Karsten Hopp |
7f6284 |
FIRST HEAD: Oh! quick! get the sword out I want to cut his head off.
|
|
Karsten Hopp |
7f6284 |
THIRD HEAD: Oh, cut your own head off.
|
|
Karsten Hopp |
7f6284 |
SECOND HEAD: Yes - do us all a favour.
|
|
Karsten Hopp |
7f6284 |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
Karsten Hopp |
7f6284 |
|
|
Karsten Hopp |
7f6284 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
7f6284 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
7f6284 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
7f6284 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|