|
Karsten Hopp |
46fb25 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
46fb25 |
Subject: Patch 7.3.075
|
|
Karsten Hopp |
46fb25 |
Fcc: outbox
|
|
Karsten Hopp |
46fb25 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
46fb25 |
Mime-Version: 1.0
|
|
Karsten Hopp |
46fb25 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
46fb25 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
46fb25 |
------------
|
|
Karsten Hopp |
46fb25 |
|
|
Karsten Hopp |
46fb25 |
Patch 7.3.075 (after 7.3.072)
|
|
Karsten Hopp |
46fb25 |
Problem: Missing part of 'wildignorecase'
|
|
Karsten Hopp |
46fb25 |
Solution: Also adjust expand()
|
|
Karsten Hopp |
46fb25 |
Files: src/eval.c
|
|
Karsten Hopp |
46fb25 |
|
|
Karsten Hopp |
46fb25 |
|
|
Karsten Hopp |
46fb25 |
*** ../vim-7.3.074/src/eval.c 2010-12-02 21:43:10.000000000 +0100
|
|
Karsten Hopp |
46fb25 |
--- src/eval.c 2010-12-02 17:30:23.000000000 +0100
|
|
Karsten Hopp |
46fb25 |
***************
|
|
Karsten Hopp |
46fb25 |
*** 9876,9882 ****
|
|
Karsten Hopp |
46fb25 |
char_u *s;
|
|
Karsten Hopp |
46fb25 |
int len;
|
|
Karsten Hopp |
46fb25 |
char_u *errormsg;
|
|
Karsten Hopp |
46fb25 |
! int flags = WILD_SILENT|WILD_USE_NL|WILD_LIST_NOTFOUND;
|
|
Karsten Hopp |
46fb25 |
expand_T xpc;
|
|
Karsten Hopp |
46fb25 |
int error = FALSE;
|
|
Karsten Hopp |
46fb25 |
|
|
Karsten Hopp |
46fb25 |
--- 9876,9882 ----
|
|
Karsten Hopp |
46fb25 |
char_u *s;
|
|
Karsten Hopp |
46fb25 |
int len;
|
|
Karsten Hopp |
46fb25 |
char_u *errormsg;
|
|
Karsten Hopp |
46fb25 |
! int options = WILD_SILENT|WILD_USE_NL|WILD_LIST_NOTFOUND;
|
|
Karsten Hopp |
46fb25 |
expand_T xpc;
|
|
Karsten Hopp |
46fb25 |
int error = FALSE;
|
|
Karsten Hopp |
46fb25 |
|
|
Karsten Hopp |
46fb25 |
***************
|
|
Karsten Hopp |
46fb25 |
*** 9894,9905 ****
|
|
Karsten Hopp |
46fb25 |
* for 'wildignore' and don't put matches for 'suffixes' at the end. */
|
|
Karsten Hopp |
46fb25 |
if (argvars[1].v_type != VAR_UNKNOWN
|
|
Karsten Hopp |
46fb25 |
&& get_tv_number_chk(&argvars[1], &error))
|
|
Karsten Hopp |
46fb25 |
! flags |= WILD_KEEP_ALL;
|
|
Karsten Hopp |
46fb25 |
if (!error)
|
|
Karsten Hopp |
46fb25 |
{
|
|
Karsten Hopp |
46fb25 |
ExpandInit(&xpc);
|
|
Karsten Hopp |
46fb25 |
xpc.xp_context = EXPAND_FILES;
|
|
Karsten Hopp |
46fb25 |
! rettv->vval.v_string = ExpandOne(&xpc, s, NULL, flags, WILD_ALL);
|
|
Karsten Hopp |
46fb25 |
}
|
|
Karsten Hopp |
46fb25 |
else
|
|
Karsten Hopp |
46fb25 |
rettv->vval.v_string = NULL;
|
|
Karsten Hopp |
46fb25 |
--- 9894,9907 ----
|
|
Karsten Hopp |
46fb25 |
* for 'wildignore' and don't put matches for 'suffixes' at the end. */
|
|
Karsten Hopp |
46fb25 |
if (argvars[1].v_type != VAR_UNKNOWN
|
|
Karsten Hopp |
46fb25 |
&& get_tv_number_chk(&argvars[1], &error))
|
|
Karsten Hopp |
46fb25 |
! options |= WILD_KEEP_ALL;
|
|
Karsten Hopp |
46fb25 |
if (!error)
|
|
Karsten Hopp |
46fb25 |
{
|
|
Karsten Hopp |
46fb25 |
ExpandInit(&xpc);
|
|
Karsten Hopp |
46fb25 |
xpc.xp_context = EXPAND_FILES;
|
|
Karsten Hopp |
46fb25 |
! if (p_wic)
|
|
Karsten Hopp |
46fb25 |
! options += WILD_ICASE;
|
|
Karsten Hopp |
46fb25 |
! rettv->vval.v_string = ExpandOne(&xpc, s, NULL, options, WILD_ALL);
|
|
Karsten Hopp |
46fb25 |
}
|
|
Karsten Hopp |
46fb25 |
else
|
|
Karsten Hopp |
46fb25 |
rettv->vval.v_string = NULL;
|
|
Karsten Hopp |
46fb25 |
***************
|
|
Karsten Hopp |
46fb25 |
*** 11672,11678 ****
|
|
Karsten Hopp |
46fb25 |
typval_T *argvars;
|
|
Karsten Hopp |
46fb25 |
typval_T *rettv;
|
|
Karsten Hopp |
46fb25 |
{
|
|
Karsten Hopp |
46fb25 |
! int flags = WILD_SILENT|WILD_USE_NL;
|
|
Karsten Hopp |
46fb25 |
expand_T xpc;
|
|
Karsten Hopp |
46fb25 |
int error = FALSE;
|
|
Karsten Hopp |
46fb25 |
|
|
Karsten Hopp |
46fb25 |
--- 11674,11680 ----
|
|
Karsten Hopp |
46fb25 |
typval_T *argvars;
|
|
Karsten Hopp |
46fb25 |
typval_T *rettv;
|
|
Karsten Hopp |
46fb25 |
{
|
|
Karsten Hopp |
46fb25 |
! int options = WILD_SILENT|WILD_USE_NL;
|
|
Karsten Hopp |
46fb25 |
expand_T xpc;
|
|
Karsten Hopp |
46fb25 |
int error = FALSE;
|
|
Karsten Hopp |
46fb25 |
|
|
Karsten Hopp |
46fb25 |
***************
|
|
Karsten Hopp |
46fb25 |
*** 11680,11693 ****
|
|
Karsten Hopp |
46fb25 |
* for 'wildignore' and don't put matches for 'suffixes' at the end. */
|
|
Karsten Hopp |
46fb25 |
if (argvars[1].v_type != VAR_UNKNOWN
|
|
Karsten Hopp |
46fb25 |
&& get_tv_number_chk(&argvars[1], &error))
|
|
Karsten Hopp |
46fb25 |
! flags |= WILD_KEEP_ALL;
|
|
Karsten Hopp |
46fb25 |
rettv->v_type = VAR_STRING;
|
|
Karsten Hopp |
46fb25 |
if (!error)
|
|
Karsten Hopp |
46fb25 |
{
|
|
Karsten Hopp |
46fb25 |
ExpandInit(&xpc);
|
|
Karsten Hopp |
46fb25 |
xpc.xp_context = EXPAND_FILES;
|
|
Karsten Hopp |
46fb25 |
rettv->vval.v_string = ExpandOne(&xpc, get_tv_string(&argvars[0]),
|
|
Karsten Hopp |
46fb25 |
! NULL, flags, WILD_ALL);
|
|
Karsten Hopp |
46fb25 |
}
|
|
Karsten Hopp |
46fb25 |
else
|
|
Karsten Hopp |
46fb25 |
rettv->vval.v_string = NULL;
|
|
Karsten Hopp |
46fb25 |
--- 11682,11697 ----
|
|
Karsten Hopp |
46fb25 |
* for 'wildignore' and don't put matches for 'suffixes' at the end. */
|
|
Karsten Hopp |
46fb25 |
if (argvars[1].v_type != VAR_UNKNOWN
|
|
Karsten Hopp |
46fb25 |
&& get_tv_number_chk(&argvars[1], &error))
|
|
Karsten Hopp |
46fb25 |
! options |= WILD_KEEP_ALL;
|
|
Karsten Hopp |
46fb25 |
rettv->v_type = VAR_STRING;
|
|
Karsten Hopp |
46fb25 |
if (!error)
|
|
Karsten Hopp |
46fb25 |
{
|
|
Karsten Hopp |
46fb25 |
ExpandInit(&xpc);
|
|
Karsten Hopp |
46fb25 |
xpc.xp_context = EXPAND_FILES;
|
|
Karsten Hopp |
46fb25 |
+ if (p_wic)
|
|
Karsten Hopp |
46fb25 |
+ options += WILD_ICASE;
|
|
Karsten Hopp |
46fb25 |
rettv->vval.v_string = ExpandOne(&xpc, get_tv_string(&argvars[0]),
|
|
Karsten Hopp |
46fb25 |
! NULL, options, WILD_ALL);
|
|
Karsten Hopp |
46fb25 |
}
|
|
Karsten Hopp |
46fb25 |
else
|
|
Karsten Hopp |
46fb25 |
rettv->vval.v_string = NULL;
|
|
Karsten Hopp |
46fb25 |
*** ../vim-7.3.074/src/version.c 2010-12-02 21:43:10.000000000 +0100
|
|
Karsten Hopp |
46fb25 |
--- src/version.c 2010-12-02 21:43:59.000000000 +0100
|
|
Karsten Hopp |
46fb25 |
***************
|
|
Karsten Hopp |
46fb25 |
*** 716,717 ****
|
|
Karsten Hopp |
46fb25 |
--- 716,719 ----
|
|
Karsten Hopp |
46fb25 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
46fb25 |
+ /**/
|
|
Karsten Hopp |
46fb25 |
+ 75,
|
|
Karsten Hopp |
46fb25 |
/**/
|
|
Karsten Hopp |
46fb25 |
|
|
Karsten Hopp |
46fb25 |
--
|
|
Karsten Hopp |
46fb25 |
Engineers will go without food and hygiene for days to solve a problem.
|
|
Karsten Hopp |
46fb25 |
(Other times just because they forgot.)
|
|
Karsten Hopp |
46fb25 |
(Scott Adams - The Dilbert principle)
|
|
Karsten Hopp |
46fb25 |
|
|
Karsten Hopp |
46fb25 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
46fb25 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
46fb25 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
46fb25 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|