|
Karsten Hopp |
b3b93d |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
b3b93d |
Subject: Patch 7.3.255
|
|
Karsten Hopp |
b3b93d |
Fcc: outbox
|
|
Karsten Hopp |
b3b93d |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
b3b93d |
Mime-Version: 1.0
|
|
Karsten Hopp |
b3b93d |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
b3b93d |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
b3b93d |
------------
|
|
Karsten Hopp |
b3b93d |
|
|
Karsten Hopp |
b3b93d |
Patch 7.3.255
|
|
Karsten Hopp |
b3b93d |
Problem: When editing a file such as "File[2010-08-15].vim" an E16 error is
|
|
Karsten Hopp |
b3b93d |
given. (Manuel Stol)
|
|
Karsten Hopp |
b3b93d |
Solution: Don't give an error for failing to compile the regexp.
|
|
Karsten Hopp |
b3b93d |
Files: src/ex_docmd.c, src/misc1.c, src/vim.h
|
|
Karsten Hopp |
b3b93d |
|
|
Karsten Hopp |
b3b93d |
|
|
Karsten Hopp |
b3b93d |
*** ../vim-7.3.254/src/ex_docmd.c 2011-06-13 01:19:48.000000000 +0200
|
|
Karsten Hopp |
b3b93d |
--- src/ex_docmd.c 2011-07-20 14:48:01.000000000 +0200
|
|
Karsten Hopp |
b3b93d |
***************
|
|
Karsten Hopp |
b3b93d |
*** 7069,7075 ****
|
|
Karsten Hopp |
b3b93d |
old_arg_count = GARGCOUNT;
|
|
Karsten Hopp |
b3b93d |
if (expand_wildcards(old_arg_count, old_arg_files,
|
|
Karsten Hopp |
b3b93d |
&new_arg_file_count, &new_arg_files,
|
|
Karsten Hopp |
b3b93d |
! EW_FILE|EW_NOTFOUND|EW_ADDSLASH) == OK
|
|
Karsten Hopp |
b3b93d |
&& new_arg_file_count > 0)
|
|
Karsten Hopp |
b3b93d |
{
|
|
Karsten Hopp |
b3b93d |
alist_set(&global_alist, new_arg_file_count, new_arg_files,
|
|
Karsten Hopp |
b3b93d |
--- 7069,7075 ----
|
|
Karsten Hopp |
b3b93d |
old_arg_count = GARGCOUNT;
|
|
Karsten Hopp |
b3b93d |
if (expand_wildcards(old_arg_count, old_arg_files,
|
|
Karsten Hopp |
b3b93d |
&new_arg_file_count, &new_arg_files,
|
|
Karsten Hopp |
b3b93d |
! EW_FILE|EW_NOTFOUND|EW_ADDSLASH|EW_NOERROR) == OK
|
|
Karsten Hopp |
b3b93d |
&& new_arg_file_count > 0)
|
|
Karsten Hopp |
b3b93d |
{
|
|
Karsten Hopp |
b3b93d |
alist_set(&global_alist, new_arg_file_count, new_arg_files,
|
|
Karsten Hopp |
b3b93d |
*** ../vim-7.3.254/src/misc1.c 2011-07-15 14:12:25.000000000 +0200
|
|
Karsten Hopp |
b3b93d |
--- src/misc1.c 2011-07-20 14:55:09.000000000 +0200
|
|
Karsten Hopp |
b3b93d |
***************
|
|
Karsten Hopp |
b3b93d |
*** 9043,9050 ****
|
|
Karsten Hopp |
b3b93d |
--- 9043,9054 ----
|
|
Karsten Hopp |
b3b93d |
}
|
|
Karsten Hopp |
b3b93d |
|
|
Karsten Hopp |
b3b93d |
/* compile the regexp into a program */
|
|
Karsten Hopp |
b3b93d |
+ if (flags & EW_NOERROR)
|
|
Karsten Hopp |
b3b93d |
+ ++emsg_silent;
|
|
Karsten Hopp |
b3b93d |
regmatch.rm_ic = TRUE; /* Always ignore case */
|
|
Karsten Hopp |
b3b93d |
regmatch.regprog = vim_regcomp(pat, RE_MAGIC);
|
|
Karsten Hopp |
b3b93d |
+ if (flags & EW_NOERROR)
|
|
Karsten Hopp |
b3b93d |
+ --emsg_silent;
|
|
Karsten Hopp |
b3b93d |
vim_free(pat);
|
|
Karsten Hopp |
b3b93d |
|
|
Karsten Hopp |
b3b93d |
if (regmatch.regprog == NULL)
|
|
Karsten Hopp |
b3b93d |
*** ../vim-7.3.254/src/vim.h 2011-06-13 02:03:55.000000000 +0200
|
|
Karsten Hopp |
b3b93d |
--- src/vim.h 2011-07-20 14:50:13.000000000 +0200
|
|
Karsten Hopp |
b3b93d |
***************
|
|
Karsten Hopp |
b3b93d |
*** 815,820 ****
|
|
Karsten Hopp |
b3b93d |
--- 815,821 ----
|
|
Karsten Hopp |
b3b93d |
#define EW_EXEC 0x40 /* executable files */
|
|
Karsten Hopp |
b3b93d |
#define EW_PATH 0x80 /* search in 'path' too */
|
|
Karsten Hopp |
b3b93d |
#define EW_ICASE 0x100 /* ignore case */
|
|
Karsten Hopp |
b3b93d |
+ #define EW_NOERROR 0x200 /* no error for bad regexp */
|
|
Karsten Hopp |
b3b93d |
/* Note: mostly EW_NOTFOUND and EW_SILENT are mutually exclusive: EW_NOTFOUND
|
|
Karsten Hopp |
b3b93d |
* is used when executing commands and EW_SILENT for interactive expanding. */
|
|
Karsten Hopp |
b3b93d |
|
|
Karsten Hopp |
b3b93d |
*** ../vim-7.3.254/src/version.c 2011-07-15 21:24:06.000000000 +0200
|
|
Karsten Hopp |
b3b93d |
--- src/version.c 2011-07-20 15:03:52.000000000 +0200
|
|
Karsten Hopp |
b3b93d |
***************
|
|
Karsten Hopp |
b3b93d |
*** 711,712 ****
|
|
Karsten Hopp |
b3b93d |
--- 711,714 ----
|
|
Karsten Hopp |
b3b93d |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
b3b93d |
+ /**/
|
|
Karsten Hopp |
b3b93d |
+ 255,
|
|
Karsten Hopp |
b3b93d |
/**/
|
|
Karsten Hopp |
b3b93d |
|
|
Karsten Hopp |
b3b93d |
--
|
|
Karsten Hopp |
b3b93d |
Not too long ago, a program was something you watched on TV...
|
|
Karsten Hopp |
b3b93d |
|
|
Karsten Hopp |
b3b93d |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
b3b93d |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
b3b93d |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
b3b93d |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|