4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Win32: When editing a file c:\tmp\foo and c:\tmp\\foo we have two
12 buffers for the same file. (Suresh Govindachar)
13 Solution: Invoke FullName_save() when a path contains "//" or "\\".
17 *** ../vim-7.1.134/src/buffer.c Sun Sep 30 14:00:41 2007
18 --- src/buffer.c Wed Oct 3 14:24:52 2007
21 * mess up the full path name, even though it starts with a '/'.
22 * Also expand when there is ".." in the file name, try to remove it,
23 * because "c:/src/../README" is equal to "c:/README".
24 * For MS-Windows also expand names like "longna~1" to "longname".
27 return FullName_save(fname, TRUE);
29 ! if (!vim_isAbsName(fname) || strstr((char *)fname, "..") != NULL
30 ! #if defined(MSWIN) || defined(DJGPP)
31 || vim_strchr(fname, '~') != NULL
34 return FullName_save(fname, FALSE);
36 fname = vim_strsave(fname);
38 ! #ifdef USE_FNAME_CASE
39 ! # ifdef USE_LONG_FNAME
44 fname_case(fname, 0); /* set correct case for file name */
51 * mess up the full path name, even though it starts with a '/'.
52 * Also expand when there is ".." in the file name, try to remove it,
53 * because "c:/src/../README" is equal to "c:/README".
54 + * Similarly "c:/src//file" is equal to "c:/src/file".
55 * For MS-Windows also expand names like "longna~1" to "longname".
58 return FullName_save(fname, TRUE);
60 ! if (!vim_isAbsName(fname)
61 ! || strstr((char *)fname, "..") != NULL
62 ! || strstr((char *)fname, "//") != NULL
63 ! # ifdef BACKSLASH_IN_FILENAME
64 ! || strstr((char *)fname, "\\\\") != NULL
66 ! # if defined(MSWIN) || defined(DJGPP)
67 || vim_strchr(fname, '~') != NULL
70 return FullName_save(fname, FALSE);
72 fname = vim_strsave(fname);
74 ! # ifdef USE_FNAME_CASE
75 ! # ifdef USE_LONG_FNAME
80 fname_case(fname, 0); /* set correct case for file name */
86 *** ../vim-7.1.134/src/version.c Wed Oct 3 13:28:40 2007
87 --- src/version.c Wed Oct 3 14:26:54 2007
91 { /* Add new patch number below this line */
97 A village. Sound of chanting of Latin canon, punctuated by short, sharp
98 cracks. It comes nearer. We see it is a line of MONKS ala SEVENTH SEAL
99 flagellation scene, chanting and banging themselves on the foreheads with
101 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
103 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
104 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
105 \\\ download, build and distribute -- http://www.A-A-P.org ///
106 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///