1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: ":cd" doesn't work when the path contains wildcards. (Yukihiro
13 Solution: Ignore wildcard errors when the EW_NOTWILD flag is used.
17 *** ../vim-7.3.398/src/misc1.c 2011-12-14 20:21:29.000000000 +0100
18 --- src/misc1.c 2012-01-10 17:57:42.000000000 +0100
23 /* compile the regexp into a program */
24 ! if (flags & EW_NOERROR)
26 regmatch.rm_ic = TRUE; /* Always ignore case */
27 regmatch.regprog = vim_regcomp(pat, RE_MAGIC);
28 ! if (flags & EW_NOERROR)
32 ! if (regmatch.regprog == NULL)
39 /* compile the regexp into a program */
40 ! if (flags & (EW_NOERROR | EW_NOTWILD))
42 regmatch.rm_ic = TRUE; /* Always ignore case */
43 regmatch.regprog = vim_regcomp(pat, RE_MAGIC);
44 ! if (flags & (EW_NOERROR | EW_NOTWILD))
48 ! if (regmatch.regprog == NULL && (flags & EW_NOTWILD) == 0)
54 * all entries found with "matchname". */
55 if ((p[0] != '.' || starts_with_dot)
57 ! || vim_regexec(®match, p, (colnr_T)0)
58 || ((flags & EW_NOTWILD)
59 && fnamencmp(path + (s - buf), p, e - s) == 0)))
62 * all entries found with "matchname". */
63 if ((p[0] != '.' || starts_with_dot)
65 ! || (regmatch.regprog != NULL
66 ! && vim_regexec(®match, p, (colnr_T)0))
67 || ((flags & EW_NOTWILD)
68 && fnamencmp(path + (s - buf), p, e - s) == 0)))
73 regmatch.rm_ic = FALSE; /* Don't ignore case */
75 regmatch.regprog = vim_regcomp(pat, RE_MAGIC);
78 ! if (regmatch.regprog == NULL)
84 regmatch.rm_ic = FALSE; /* Don't ignore case */
86 + if (flags & (EW_NOERROR | EW_NOTWILD))
88 regmatch.regprog = vim_regcomp(pat, RE_MAGIC);
89 + if (flags & (EW_NOERROR | EW_NOTWILD))
93 ! if (regmatch.regprog == NULL && (flags & EW_NOTWILD) == 0)
101 if ((dp->d_name[0] != '.' || starts_with_dot)
102 ! && (vim_regexec(®match, (char_u *)dp->d_name, (colnr_T)0)
103 || ((flags & EW_NOTWILD)
104 && fnamencmp(path + (s - buf), dp->d_name, e - s) == 0)))
109 if ((dp->d_name[0] != '.' || starts_with_dot)
110 ! && ((regmatch.regprog != NULL && vim_regexec(®match,
111 ! (char_u *)dp->d_name, (colnr_T)0))
112 || ((flags & EW_NOTWILD)
113 && fnamencmp(path + (s - buf), dp->d_name, e - s) == 0)))
115 *** ../vim-7.3.398/src/version.c 2012-01-10 17:13:48.000000000 +0100
116 --- src/version.c 2012-01-10 18:21:05.000000000 +0100
120 { /* Add new patch number below this line */
126 Close your shells, or I'll kill -9 you
127 Tomorrow I'll quota you
128 Remember the disks'll always be full
129 And then while I'm away
130 I'll write ~ everyday
131 And I'll send-pr all my buggings to you.
132 [ CVS log "Beatles style" for FreeBSD ports/INDEX, Satoshi Asami ]
134 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
135 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
136 \\\ an exciting new programming language -- http://www.Zimbu.org ///
137 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///