|
Karsten Hopp |
0b075d |
To: vim-dev@vim.org
|
|
Karsten Hopp |
0b075d |
Subject: Patch 7.1.283
|
|
Karsten Hopp |
0b075d |
Fcc: outbox
|
|
Karsten Hopp |
0b075d |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
0b075d |
Mime-Version: 1.0
|
|
Karsten Hopp |
0b075d |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
0b075d |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
0b075d |
------------
|
|
Karsten Hopp |
0b075d |
|
|
Karsten Hopp |
0b075d |
Patch 7.1.283
|
|
Karsten Hopp |
0b075d |
Problem: Non-extra part for 7.1.282.
|
|
Karsten Hopp |
0b075d |
Solution: Various changes.
|
|
Karsten Hopp |
0b075d |
Files: src/ex_docmd.c, src/globals.h, src/if_cscope.c, src/main.c,
|
|
Karsten Hopp |
0b075d |
src/mark.c, src/netbeans.c, src/popupmnu.c, src/vim.h,
|
|
Karsten Hopp |
0b075d |
src/window.c
|
|
Karsten Hopp |
0b075d |
|
|
Karsten Hopp |
0b075d |
|
|
Karsten Hopp |
0b075d |
*** ../vim-7.1.282/src/ex_docmd.c Mon Mar 10 21:33:52 2008
|
|
Karsten Hopp |
0b075d |
--- src/ex_docmd.c Wed Mar 12 14:53:18 2008
|
|
Karsten Hopp |
0b075d |
***************
|
|
Karsten Hopp |
0b075d |
*** 3009,3015 ****
|
|
Karsten Hopp |
0b075d |
break;
|
|
Karsten Hopp |
0b075d |
if (!isalpha(p[j]) && j >= cmdmods[i].minlen
|
|
Karsten Hopp |
0b075d |
&& (p == cmd || cmdmods[i].has_count))
|
|
Karsten Hopp |
0b075d |
! return j + (p - cmd);
|
|
Karsten Hopp |
0b075d |
}
|
|
Karsten Hopp |
0b075d |
return 0;
|
|
Karsten Hopp |
0b075d |
}
|
|
Karsten Hopp |
0b075d |
--- 3009,3015 ----
|
|
Karsten Hopp |
0b075d |
break;
|
|
Karsten Hopp |
0b075d |
if (!isalpha(p[j]) && j >= cmdmods[i].minlen
|
|
Karsten Hopp |
0b075d |
&& (p == cmd || cmdmods[i].has_count))
|
|
Karsten Hopp |
0b075d |
! return j + (int)(p - cmd);
|
|
Karsten Hopp |
0b075d |
}
|
|
Karsten Hopp |
0b075d |
return 0;
|
|
Karsten Hopp |
0b075d |
}
|
|
Karsten Hopp |
0b075d |
*** ../vim-7.1.282/src/globals.h Tue Jan 1 14:16:42 2008
|
|
Karsten Hopp |
0b075d |
--- src/globals.h Wed Mar 12 14:54:00 2008
|
|
Karsten Hopp |
0b075d |
***************
|
|
Karsten Hopp |
0b075d |
*** 1263,1269 ****
|
|
Karsten Hopp |
0b075d |
* The value of the --windowid argument.
|
|
Karsten Hopp |
0b075d |
* For embedding gvim inside another application.
|
|
Karsten Hopp |
0b075d |
*/
|
|
Karsten Hopp |
0b075d |
! EXTERN int win_socket_id INIT(= 0);
|
|
Karsten Hopp |
0b075d |
#endif
|
|
Karsten Hopp |
0b075d |
|
|
Karsten Hopp |
0b075d |
#if defined(FEAT_CLIENTSERVER) || defined(FEAT_EVAL)
|
|
Karsten Hopp |
0b075d |
--- 1263,1269 ----
|
|
Karsten Hopp |
0b075d |
* The value of the --windowid argument.
|
|
Karsten Hopp |
0b075d |
* For embedding gvim inside another application.
|
|
Karsten Hopp |
0b075d |
*/
|
|
Karsten Hopp |
0b075d |
! EXTERN long_u win_socket_id INIT(= 0);
|
|
Karsten Hopp |
0b075d |
#endif
|
|
Karsten Hopp |
0b075d |
|
|
Karsten Hopp |
0b075d |
#if defined(FEAT_CLIENTSERVER) || defined(FEAT_EVAL)
|
|
Karsten Hopp |
0b075d |
*** ../vim-7.1.282/src/if_cscope.c Sun Mar 16 13:09:14 2008
|
|
Karsten Hopp |
0b075d |
--- src/if_cscope.c Sun Mar 16 13:05:51 2008
|
|
Karsten Hopp |
0b075d |
***************
|
|
Karsten Hopp |
0b075d |
*** 1400,1406 ****
|
|
Karsten Hopp |
0b075d |
return NULL;
|
|
Karsten Hopp |
0b075d |
|
|
Karsten Hopp |
0b075d |
/* Store length of eap->arg before it gets modified by strtok(). */
|
|
Karsten Hopp |
0b075d |
! eap_arg_len = STRLEN(eap->arg);
|
|
Karsten Hopp |
0b075d |
|
|
Karsten Hopp |
0b075d |
if ((stok = strtok((char *)(eap->arg), (const char *)" ")) == NULL)
|
|
Karsten Hopp |
0b075d |
return NULL;
|
|
Karsten Hopp |
0b075d |
--- 1400,1406 ----
|
|
Karsten Hopp |
0b075d |
return NULL;
|
|
Karsten Hopp |
0b075d |
|
|
Karsten Hopp |
0b075d |
/* Store length of eap->arg before it gets modified by strtok(). */
|
|
Karsten Hopp |
0b075d |
! eap_arg_len = (int)STRLEN(eap->arg);
|
|
Karsten Hopp |
0b075d |
|
|
Karsten Hopp |
0b075d |
if ((stok = strtok((char *)(eap->arg), (const char *)" ")) == NULL)
|
|
Karsten Hopp |
0b075d |
return NULL;
|
|
Karsten Hopp |
0b075d |
*** ../vim-7.1.282/src/main.c Sun Jan 13 16:17:02 2008
|
|
Karsten Hopp |
0b075d |
--- src/main.c Wed Mar 12 15:04:30 2008
|
|
Karsten Hopp |
0b075d |
***************
|
|
Karsten Hopp |
0b075d |
*** 1552,1566 ****
|
|
Karsten Hopp |
0b075d |
else if (STRICMP(argv[i], "--socketid") == 0)
|
|
Karsten Hopp |
0b075d |
# endif
|
|
Karsten Hopp |
0b075d |
{
|
|
Karsten Hopp |
0b075d |
! unsigned int id;
|
|
Karsten Hopp |
0b075d |
! int count;
|
|
Karsten Hopp |
0b075d |
|
|
Karsten Hopp |
0b075d |
if (i == argc - 1)
|
|
Karsten Hopp |
0b075d |
mainerr_arg_missing((char_u *)argv[i]);
|
|
Karsten Hopp |
0b075d |
if (STRNICMP(argv[i+1], "0x", 2) == 0)
|
|
Karsten Hopp |
0b075d |
! count = sscanf(&(argv[i + 1][2]), "%x", &id;;
|
|
Karsten Hopp |
0b075d |
else
|
|
Karsten Hopp |
0b075d |
! count = sscanf(argv[i+1], "%u", &id;;
|
|
Karsten Hopp |
0b075d |
if (count != 1)
|
|
Karsten Hopp |
0b075d |
mainerr(ME_INVALID_ARG, (char_u *)argv[i]);
|
|
Karsten Hopp |
0b075d |
else
|
|
Karsten Hopp |
0b075d |
--- 1552,1566 ----
|
|
Karsten Hopp |
0b075d |
else if (STRICMP(argv[i], "--socketid") == 0)
|
|
Karsten Hopp |
0b075d |
# endif
|
|
Karsten Hopp |
0b075d |
{
|
|
Karsten Hopp |
0b075d |
! long_u id;
|
|
Karsten Hopp |
0b075d |
! int count;
|
|
Karsten Hopp |
0b075d |
|
|
Karsten Hopp |
0b075d |
if (i == argc - 1)
|
|
Karsten Hopp |
0b075d |
mainerr_arg_missing((char_u *)argv[i]);
|
|
Karsten Hopp |
0b075d |
if (STRNICMP(argv[i+1], "0x", 2) == 0)
|
|
Karsten Hopp |
0b075d |
! count = sscanf(&(argv[i + 1][2]), SCANF_HEX_LONG_U, &id;;
|
|
Karsten Hopp |
0b075d |
else
|
|
Karsten Hopp |
0b075d |
! count = sscanf(argv[i + 1], SCANF_DECIMAL_LONG_U, &id;;
|
|
Karsten Hopp |
0b075d |
if (count != 1)
|
|
Karsten Hopp |
0b075d |
mainerr(ME_INVALID_ARG, (char_u *)argv[i]);
|
|
Karsten Hopp |
0b075d |
else
|
|
Karsten Hopp |
0b075d |
*** ../vim-7.1.282/src/mark.c Wed Feb 13 12:41:30 2008
|
|
Karsten Hopp |
0b075d |
--- src/mark.c Wed Mar 12 15:10:14 2008
|
|
Karsten Hopp |
0b075d |
***************
|
|
Karsten Hopp |
0b075d |
*** 522,528 ****
|
|
Karsten Hopp |
0b075d |
int len;
|
|
Karsten Hopp |
0b075d |
|
|
Karsten Hopp |
0b075d |
expand_env((char_u *)"~/", NameBuff, MAXPATHL);
|
|
Karsten Hopp |
0b075d |
! len = STRLEN(NameBuff);
|
|
Karsten Hopp |
0b075d |
vim_strncpy(NameBuff + len, fm->fname + 2, MAXPATHL - len - 1);
|
|
Karsten Hopp |
0b075d |
}
|
|
Karsten Hopp |
0b075d |
else
|
|
Karsten Hopp |
0b075d |
--- 522,528 ----
|
|
Karsten Hopp |
0b075d |
int len;
|
|
Karsten Hopp |
0b075d |
|
|
Karsten Hopp |
0b075d |
expand_env((char_u *)"~/", NameBuff, MAXPATHL);
|
|
Karsten Hopp |
0b075d |
! len = (int)STRLEN(NameBuff);
|
|
Karsten Hopp |
0b075d |
vim_strncpy(NameBuff + len, fm->fname + 2, MAXPATHL - len - 1);
|
|
Karsten Hopp |
0b075d |
}
|
|
Karsten Hopp |
0b075d |
else
|
|
Karsten Hopp |
0b075d |
*** ../vim-7.1.282/src/netbeans.c Fri Jan 18 11:40:02 2008
|
|
Karsten Hopp |
0b075d |
--- src/netbeans.c Wed Mar 12 15:11:42 2008
|
|
Karsten Hopp |
0b075d |
***************
|
|
Karsten Hopp |
0b075d |
*** 1216,1222 ****
|
|
Karsten Hopp |
0b075d |
int lastbyte = last;
|
|
Karsten Hopp |
0b075d |
|
|
Karsten Hopp |
0b075d |
oldtext = ml_get(lnum);
|
|
Karsten Hopp |
0b075d |
! oldlen = STRLEN(oldtext);
|
|
Karsten Hopp |
0b075d |
if (first >= (colnr_T)oldlen || oldlen == 0) /* just in case */
|
|
Karsten Hopp |
0b075d |
return;
|
|
Karsten Hopp |
0b075d |
if (lastbyte >= oldlen)
|
|
Karsten Hopp |
0b075d |
--- 1216,1222 ----
|
|
Karsten Hopp |
0b075d |
int lastbyte = last;
|
|
Karsten Hopp |
0b075d |
|
|
Karsten Hopp |
0b075d |
oldtext = ml_get(lnum);
|
|
Karsten Hopp |
0b075d |
! oldlen = (int)STRLEN(oldtext);
|
|
Karsten Hopp |
0b075d |
if (first >= (colnr_T)oldlen || oldlen == 0) /* just in case */
|
|
Karsten Hopp |
0b075d |
return;
|
|
Karsten Hopp |
0b075d |
if (lastbyte >= oldlen)
|
|
Karsten Hopp |
0b075d |
***************
|
|
Karsten Hopp |
0b075d |
*** 1241,1248 ****
|
|
Karsten Hopp |
0b075d |
int len_first, len_other;
|
|
Karsten Hopp |
0b075d |
char_u *p;
|
|
Karsten Hopp |
0b075d |
|
|
Karsten Hopp |
0b075d |
! len_first = STRLEN(ml_get(first));
|
|
Karsten Hopp |
0b075d |
! len_other = STRLEN(ml_get(other));
|
|
Karsten Hopp |
0b075d |
p = alloc((unsigned)(len_first + len_other + 1));
|
|
Karsten Hopp |
0b075d |
if (p != NULL)
|
|
Karsten Hopp |
0b075d |
{
|
|
Karsten Hopp |
0b075d |
--- 1241,1248 ----
|
|
Karsten Hopp |
0b075d |
int len_first, len_other;
|
|
Karsten Hopp |
0b075d |
char_u *p;
|
|
Karsten Hopp |
0b075d |
|
|
Karsten Hopp |
0b075d |
! len_first = (int)STRLEN(ml_get(first));
|
|
Karsten Hopp |
0b075d |
! len_other = (int)STRLEN(ml_get(other));
|
|
Karsten Hopp |
0b075d |
p = alloc((unsigned)(len_first + len_other + 1));
|
|
Karsten Hopp |
0b075d |
if (p != NULL)
|
|
Karsten Hopp |
0b075d |
{
|
|
Karsten Hopp |
0b075d |
*** ../vim-7.1.282/src/popupmnu.c Wed Aug 8 22:48:16 2007
|
|
Karsten Hopp |
0b075d |
--- src/popupmnu.c Wed Mar 12 15:17:21 2008
|
|
Karsten Hopp |
0b075d |
***************
|
|
Karsten Hopp |
0b075d |
*** 337,343 ****
|
|
Karsten Hopp |
0b075d |
|
|
Karsten Hopp |
0b075d |
if (rt != NULL)
|
|
Karsten Hopp |
0b075d |
{
|
|
Karsten Hopp |
0b075d |
! len = STRLEN(rt);
|
|
Karsten Hopp |
0b075d |
if (len > pum_width)
|
|
Karsten Hopp |
0b075d |
{
|
|
Karsten Hopp |
0b075d |
for (j = pum_width; j < len; ++j)
|
|
Karsten Hopp |
0b075d |
--- 337,343 ----
|
|
Karsten Hopp |
0b075d |
|
|
Karsten Hopp |
0b075d |
if (rt != NULL)
|
|
Karsten Hopp |
0b075d |
{
|
|
Karsten Hopp |
0b075d |
! len = (int)STRLEN(rt);
|
|
Karsten Hopp |
0b075d |
if (len > pum_width)
|
|
Karsten Hopp |
0b075d |
{
|
|
Karsten Hopp |
0b075d |
for (j = pum_width; j < len; ++j)
|
|
Karsten Hopp |
0b075d |
*** ../vim-7.1.282/src/vim.h Sat Mar 15 13:10:57 2008
|
|
Karsten Hopp |
0b075d |
--- src/vim.h Thu Mar 13 23:39:21 2008
|
|
Karsten Hopp |
0b075d |
***************
|
|
Karsten Hopp |
0b075d |
*** 355,370 ****
|
|
Karsten Hopp |
0b075d |
* On Win64 longs are 32 bit and pointers 64 bit.
|
|
Karsten Hopp |
0b075d |
* For printf() and scanf() we need to take care of long_u specifically. */
|
|
Karsten Hopp |
0b075d |
#ifdef _WIN64
|
|
Karsten Hopp |
0b075d |
! typedef unsigned __int64 long_u;
|
|
Karsten Hopp |
0b075d |
! typedef __int64 long_i;
|
|
Karsten Hopp |
0b075d |
! # define SCANF_HEX_LONG_U "%Ix"
|
|
Karsten Hopp |
0b075d |
! # define PRINTF_HEX_LONG_U "0x%Ix"
|
|
Karsten Hopp |
0b075d |
! #else
|
|
Karsten Hopp |
0b075d |
! typedef unsigned long long_u;
|
|
Karsten Hopp |
0b075d |
! typedef long long_i;
|
|
Karsten Hopp |
0b075d |
! # define SCANF_HEX_LONG_U "%lx"
|
|
Karsten Hopp |
0b075d |
! # define PRINTF_HEX_LONG_U "0x%lx"
|
|
Karsten Hopp |
0b075d |
#endif
|
|
Karsten Hopp |
0b075d |
|
|
Karsten Hopp |
0b075d |
/*
|
|
Karsten Hopp |
0b075d |
* The characters and attributes cached for the screen.
|
|
Karsten Hopp |
0b075d |
--- 355,373 ----
|
|
Karsten Hopp |
0b075d |
* On Win64 longs are 32 bit and pointers 64 bit.
|
|
Karsten Hopp |
0b075d |
* For printf() and scanf() we need to take care of long_u specifically. */
|
|
Karsten Hopp |
0b075d |
#ifdef _WIN64
|
|
Karsten Hopp |
0b075d |
! typedef unsigned __int64 long_u;
|
|
Karsten Hopp |
0b075d |
! typedef __int64 long_i;
|
|
Karsten Hopp |
0b075d |
! # define SCANF_HEX_LONG_U "%Ix"
|
|
Karsten Hopp |
0b075d |
! # define SCANF_DECIMAL_LONG_U "%Iu"
|
|
Karsten Hopp |
0b075d |
! # define PRINTF_HEX_LONG_U "0x%Ix"
|
|
Karsten Hopp |
0b075d |
! #else
|
|
Karsten Hopp |
0b075d |
! typedef unsigned long long_u;
|
|
Karsten Hopp |
0b075d |
! typedef long long_i;
|
|
Karsten Hopp |
0b075d |
! # define SCANF_HEX_LONG_U "%lx"
|
|
Karsten Hopp |
0b075d |
! # define SCANF_DECIMAL_LONG_U "%lu"
|
|
Karsten Hopp |
0b075d |
! # define PRINTF_HEX_LONG_U "0x%lx"
|
|
Karsten Hopp |
0b075d |
#endif
|
|
Karsten Hopp |
0b075d |
+ #define PRINTF_DECIMAL_LONG_U SCANF_DECIMAL_LONG_U
|
|
Karsten Hopp |
0b075d |
|
|
Karsten Hopp |
0b075d |
/*
|
|
Karsten Hopp |
0b075d |
* The characters and attributes cached for the screen.
|
|
Karsten Hopp |
0b075d |
*** ../vim-7.1.282/src/window.c Sat Sep 29 14:15:00 2007
|
|
Karsten Hopp |
0b075d |
--- src/window.c Wed Mar 12 15:22:10 2008
|
|
Karsten Hopp |
0b075d |
***************
|
|
Karsten Hopp |
0b075d |
*** 6303,6309 ****
|
|
Karsten Hopp |
0b075d |
cur = cur->next;
|
|
Karsten Hopp |
0b075d |
}
|
|
Karsten Hopp |
0b075d |
}
|
|
Karsten Hopp |
0b075d |
! if ((hlg_id = syn_namen2id(grp, STRLEN(grp))) == 0)
|
|
Karsten Hopp |
0b075d |
{
|
|
Karsten Hopp |
0b075d |
EMSG2(_(e_nogroup), grp);
|
|
Karsten Hopp |
0b075d |
return -1;
|
|
Karsten Hopp |
0b075d |
--- 6303,6309 ----
|
|
Karsten Hopp |
0b075d |
cur = cur->next;
|
|
Karsten Hopp |
0b075d |
}
|
|
Karsten Hopp |
0b075d |
}
|
|
Karsten Hopp |
0b075d |
! if ((hlg_id = syn_namen2id(grp, (int)STRLEN(grp))) == 0)
|
|
Karsten Hopp |
0b075d |
{
|
|
Karsten Hopp |
0b075d |
EMSG2(_(e_nogroup), grp);
|
|
Karsten Hopp |
0b075d |
return -1;
|
|
Karsten Hopp |
0b075d |
*** ../vim-7.1.282/src/version.c Sun Mar 16 14:52:53 2008
|
|
Karsten Hopp |
0b075d |
--- src/version.c Sun Mar 16 16:00:17 2008
|
|
Karsten Hopp |
0b075d |
***************
|
|
Karsten Hopp |
0b075d |
*** 668,669 ****
|
|
Karsten Hopp |
0b075d |
--- 668,671 ----
|
|
Karsten Hopp |
0b075d |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
0b075d |
+ /**/
|
|
Karsten Hopp |
0b075d |
+ 283,
|
|
Karsten Hopp |
0b075d |
/**/
|
|
Karsten Hopp |
0b075d |
|
|
Karsten Hopp |
0b075d |
--
|
|
Karsten Hopp |
0b075d |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
0b075d |
139. You down your lunch in five minutes, at your desk, so you can
|
|
Karsten Hopp |
0b075d |
spend the rest of the hour surfing the Net.
|
|
Karsten Hopp |
0b075d |
|
|
Karsten Hopp |
0b075d |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
0b075d |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
0b075d |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
0b075d |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|