|
Karsten Hopp |
3b77b0 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
3b77b0 |
Subject: Patch 7.1.194
|
|
Karsten Hopp |
3b77b0 |
Fcc: outbox
|
|
Karsten Hopp |
3b77b0 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
3b77b0 |
Mime-Version: 1.0
|
|
Karsten Hopp |
3b77b0 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
3b77b0 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
3b77b0 |
------------
|
|
Karsten Hopp |
3b77b0 |
|
|
Karsten Hopp |
3b77b0 |
Patch 7.1.194
|
|
Karsten Hopp |
3b77b0 |
Problem: ":echo glob('~/{}')" results in /home/user//.
|
|
Karsten Hopp |
3b77b0 |
Solution: Don't add a slash if there already is one.
|
|
Karsten Hopp |
3b77b0 |
Files: src/os_unix.c
|
|
Karsten Hopp |
3b77b0 |
|
|
Karsten Hopp |
3b77b0 |
|
|
Karsten Hopp |
3b77b0 |
*** ../vim-7.1.193/src/os_unix.c Sat Dec 1 17:18:45 2007
|
|
Karsten Hopp |
3b77b0 |
--- src/os_unix.c Thu Jan 3 18:52:22 2008
|
|
Karsten Hopp |
3b77b0 |
***************
|
|
Karsten Hopp |
3b77b0 |
*** 5482,5488 ****
|
|
Karsten Hopp |
3b77b0 |
{
|
|
Karsten Hopp |
3b77b0 |
STRCPY(p, (*file)[i]);
|
|
Karsten Hopp |
3b77b0 |
if (dir)
|
|
Karsten Hopp |
3b77b0 |
! STRCAT(p, "/"); /* add '/' to a directory name */
|
|
Karsten Hopp |
3b77b0 |
(*file)[j++] = p;
|
|
Karsten Hopp |
3b77b0 |
}
|
|
Karsten Hopp |
3b77b0 |
}
|
|
Karsten Hopp |
3b77b0 |
--- 5482,5488 ----
|
|
Karsten Hopp |
3b77b0 |
{
|
|
Karsten Hopp |
3b77b0 |
STRCPY(p, (*file)[i]);
|
|
Karsten Hopp |
3b77b0 |
if (dir)
|
|
Karsten Hopp |
3b77b0 |
! add_pathsep(p); /* add '/' to a directory name */
|
|
Karsten Hopp |
3b77b0 |
(*file)[j++] = p;
|
|
Karsten Hopp |
3b77b0 |
}
|
|
Karsten Hopp |
3b77b0 |
}
|
|
Karsten Hopp |
3b77b0 |
*** ../vim-7.1.193/src/version.c Thu Jan 3 17:53:41 2008
|
|
Karsten Hopp |
3b77b0 |
--- src/version.c Thu Jan 3 18:54:41 2008
|
|
Karsten Hopp |
3b77b0 |
***************
|
|
Karsten Hopp |
3b77b0 |
*** 668,669 ****
|
|
Karsten Hopp |
3b77b0 |
--- 668,671 ----
|
|
Karsten Hopp |
3b77b0 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
3b77b0 |
+ /**/
|
|
Karsten Hopp |
3b77b0 |
+ 194,
|
|
Karsten Hopp |
3b77b0 |
/**/
|
|
Karsten Hopp |
3b77b0 |
|
|
Karsten Hopp |
3b77b0 |
--
|
|
Karsten Hopp |
3b77b0 |
ARTHUR: Will you ask your master if he wants to join my court at Camelot?!
|
|
Karsten Hopp |
3b77b0 |
GUARD #1: But then of course African swallows are not migratory.
|
|
Karsten Hopp |
3b77b0 |
GUARD #2: Oh, yeah...
|
|
Karsten Hopp |
3b77b0 |
GUARD #1: So they couldn't bring a coconut back anyway...
|
|
Karsten Hopp |
3b77b0 |
The Quest for the Holy Grail (Monty Python)
|
|
Karsten Hopp |
3b77b0 |
|
|
Karsten Hopp |
3b77b0 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
3b77b0 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
3b77b0 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
3b77b0 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|