|
Karsten Hopp |
81c285 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
81c285 |
Subject: Patch 7.2.233 (extra)
|
|
Karsten Hopp |
81c285 |
Fcc: outbox
|
|
Karsten Hopp |
81c285 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
81c285 |
Mime-Version: 1.0
|
|
Karsten Hopp |
81c285 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
81c285 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
81c285 |
------------
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
Patch 7.2.233 (extra part of 7.2.232)
|
|
Karsten Hopp |
81c285 |
Problem: Cannot debug problems with being in a wrong directory.
|
|
Karsten Hopp |
81c285 |
Solution: When 'verbose' is 5 or higher report directory changes.
|
|
Karsten Hopp |
81c285 |
Files: src/os_msdos.c, src/os_mswin.c, src/os_riscos.c, src/os_mac.h
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.232/src/os_msdos.c 2008-06-24 23:30:18.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/os_msdos.c 2009-07-14 16:50:57.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2039,2044 ****
|
|
Karsten Hopp |
81c285 |
--- 2039,2050 ----
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (path[0] == NUL) /* just checking... */
|
|
Karsten Hopp |
81c285 |
return 0;
|
|
Karsten Hopp |
81c285 |
+ if (p_verbose >= 5)
|
|
Karsten Hopp |
81c285 |
+ {
|
|
Karsten Hopp |
81c285 |
+ verbose_enter();
|
|
Karsten Hopp |
81c285 |
+ smsg((char_u *)"chdir(%s)", path);
|
|
Karsten Hopp |
81c285 |
+ verbose_leave();
|
|
Karsten Hopp |
81c285 |
+ }
|
|
Karsten Hopp |
81c285 |
if (path[1] == ':') /* has a drive name */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (change_drive(TOLOWER_ASC(path[0]) - 'a' + 1))
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.232/src/os_mswin.c 2009-05-14 22:00:37.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/os_mswin.c 2009-07-14 16:53:03.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 653,658 ****
|
|
Karsten Hopp |
81c285 |
--- 653,664 ----
|
|
Karsten Hopp |
81c285 |
if (path[0] == NUL) /* just checking... */
|
|
Karsten Hopp |
81c285 |
return -1;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
+ if (p_verbose >= 5)
|
|
Karsten Hopp |
81c285 |
+ {
|
|
Karsten Hopp |
81c285 |
+ verbose_enter();
|
|
Karsten Hopp |
81c285 |
+ smsg((char_u *)"chdir(%s)", path);
|
|
Karsten Hopp |
81c285 |
+ verbose_leave();
|
|
Karsten Hopp |
81c285 |
+ }
|
|
Karsten Hopp |
81c285 |
if (isalpha(path[0]) && path[1] == ':') /* has a drive name */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* If we can change to the drive, skip that part of the path. If we
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.232/src/os_riscos.c 2006-03-07 23:25:50.000000000 +0100
|
|
Karsten Hopp |
81c285 |
--- src/os_riscos.c 2009-07-14 16:53:35.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1203,1208 ****
|
|
Karsten Hopp |
81c285 |
--- 1203,1214 ----
|
|
Karsten Hopp |
81c285 |
int retval;
|
|
Karsten Hopp |
81c285 |
char_u *new_dir;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
+ if (p_verbose >= 5)
|
|
Karsten Hopp |
81c285 |
+ {
|
|
Karsten Hopp |
81c285 |
+ verbose_enter();
|
|
Karsten Hopp |
81c285 |
+ smsg((char_u *)"chdir(%s)", dir);
|
|
Karsten Hopp |
81c285 |
+ verbose_leave();
|
|
Karsten Hopp |
81c285 |
+ }
|
|
Karsten Hopp |
81c285 |
length = strlen(dir);
|
|
Karsten Hopp |
81c285 |
if (dir[length - 1] != '.')
|
|
Karsten Hopp |
81c285 |
return chdir(dir); /* No trailing dots - nothing to do. */
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.232/src/os_mac.h 2009-06-24 16:41:01.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/os_mac.h 2009-07-14 16:54:33.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 291,297 ****
|
|
Karsten Hopp |
81c285 |
# define HAVE_SETENV
|
|
Karsten Hopp |
81c285 |
# define HAVE_RENAME
|
|
Karsten Hopp |
81c285 |
# endif
|
|
Karsten Hopp |
81c285 |
- # define mch_chdir(s) chdir(s)
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
#if defined(MACOS_X) && !defined(HAVE_CONFIG_H)
|
|
Karsten Hopp |
81c285 |
--- 291,296 ----
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.232/src/version.c 2009-07-14 17:38:51.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/version.c 2009-07-14 18:35:30.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 678,679 ****
|
|
Karsten Hopp |
81c285 |
--- 678,681 ----
|
|
Karsten Hopp |
81c285 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
81c285 |
+ /**/
|
|
Karsten Hopp |
81c285 |
+ 233,
|
|
Karsten Hopp |
81c285 |
/**/
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--
|
|
Karsten Hopp |
81c285 |
From "know your smileys":
|
|
Karsten Hopp |
81c285 |
:-O>-o Smiley American tourist (note big mouth and camera)
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
81c285 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
81c285 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
81c285 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|