]> git.pld-linux.org Git - packages/vim.git/blame - 7.1.121
- updated to 0.7.5
[packages/vim.git] / 7.1.121
CommitLineData
25f687b8
AM
1To: vim-dev@vim.org
2Subject: patch 7.1.121
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.1.121
11Problem: Using ":cd %:h" when editing a file in the current directory
12 results in an error message for using an empty string.
13Solution: When "%:h" results in an empty string use ".".
14Files: src/eval.c
15
16
17*** ../vim-7.1.120/src/eval.c Tue Sep 25 17:54:41 2007
18--- src/eval.c Sun Sep 16 19:24:49 2007
19***************
20*** 21308,21321 ****
21 *usedlen += 2;
22 s = get_past_head(*fnamep);
23 while (tail > s && after_pathsep(s, tail))
24! --tail;
25 *fnamelen = (int)(tail - *fnamep);
26 #ifdef VMS
27 if (*fnamelen > 0)
28 *fnamelen += 1; /* the path separator is part of the path */
29 #endif
30! while (tail > s && !after_pathsep(s, tail))
31! mb_ptr_back(*fnamep, tail);
32 }
33
34 /* ":8" - shortname */
35--- 21308,21334 ----
36 *usedlen += 2;
37 s = get_past_head(*fnamep);
38 while (tail > s && after_pathsep(s, tail))
39! mb_ptr_back(*fnamep, tail);
40 *fnamelen = (int)(tail - *fnamep);
41 #ifdef VMS
42 if (*fnamelen > 0)
43 *fnamelen += 1; /* the path separator is part of the path */
44 #endif
45! if (*fnamelen == 0)
46! {
47! /* Result is empty. Turn it into "." to make ":cd %:h" work. */
48! p = vim_strsave((char_u *)".");
49! if (p == NULL)
50! return -1;
51! vim_free(*bufp);
52! *bufp = *fnamep = tail = p;
53! *fnamelen = 1;
54! }
55! else
56! {
57! while (tail > s && !after_pathsep(s, tail))
58! mb_ptr_back(*fnamep, tail);
59! }
60 }
61
62 /* ":8" - shortname */
63*** ../vim-7.1.120/src/version.c Tue Sep 25 17:54:41 2007
64--- src/version.c Tue Sep 25 20:38:08 2007
65***************
66*** 668,669 ****
67--- 668,671 ----
68 { /* Add new patch number below this line */
69+ /**/
70+ 121,
71 /**/
72
73--
74It is illegal for anyone to try and stop a child from playfully jumping over
75puddles of water.
76 [real standing law in California, United States of America]
77
78 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
79/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
80\\\ download, build and distribute -- http://www.A-A-P.org ///
81 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
This page took 0.066637 seconds and 4 git commands to generate.