Mercurial > vim
comparison src/os_mswin.c @ 1936:85a99ba3eb5a v7.2.233
updated for version 7.2-233
author | vimboss |
---|---|
date | Tue, 14 Jul 2009 16:38:36 +0000 |
parents | 09f00d57222b |
children | cccb71c2c5c1 |
comparison
equal
deleted
inserted
replaced
1935:5bd06a91c65c | 1936:85a99ba3eb5a |
---|---|
651 mch_chdir(char *path) | 651 mch_chdir(char *path) |
652 { | 652 { |
653 if (path[0] == NUL) /* just checking... */ | 653 if (path[0] == NUL) /* just checking... */ |
654 return -1; | 654 return -1; |
655 | 655 |
656 if (p_verbose >= 5) | |
657 { | |
658 verbose_enter(); | |
659 smsg((char_u *)"chdir(%s)", path); | |
660 verbose_leave(); | |
661 } | |
656 if (isalpha(path[0]) && path[1] == ':') /* has a drive name */ | 662 if (isalpha(path[0]) && path[1] == ':') /* has a drive name */ |
657 { | 663 { |
658 /* If we can change to the drive, skip that part of the path. If we | 664 /* If we can change to the drive, skip that part of the path. If we |
659 * can't then the current directory may be invalid, try using chdir() | 665 * can't then the current directory may be invalid, try using chdir() |
660 * with the whole path. */ | 666 * with the whole path. */ |