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