4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: ":echo glob('~/{}')" results in /home/user//.
12 Solution: Don't add a slash if there already is one.
16 *** ../vim-7.1.193/src/os_unix.c Sat Dec 1 17:18:45 2007
17 --- src/os_unix.c Thu Jan 3 18:52:22 2008
21 STRCPY(p, (*file)[i]);
23 ! STRCAT(p, "/"); /* add '/' to a directory name */
29 STRCPY(p, (*file)[i]);
31 ! add_pathsep(p); /* add '/' to a directory name */
35 *** ../vim-7.1.193/src/version.c Thu Jan 3 17:53:41 2008
36 --- src/version.c Thu Jan 3 18:54:41 2008
40 { /* Add new patch number below this line */
46 ARTHUR: Will you ask your master if he wants to join my court at Camelot?!
47 GUARD #1: But then of course African swallows are not migratory.
49 GUARD #1: So they couldn't bring a coconut back anyway...
50 The Quest for the Holy Grail (Monty Python)
52 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
53 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
54 \\\ download, build and distribute -- http://www.A-A-P.org ///
55 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///