// FullName_save() is slow, don't use it when not needed.
if (*p != NUL || !vim_isAbsName(*fnamep)
-#ifdef MSWIN // enforce drive letter on windows paths
+#ifdef MSWIN // enforce drive letter on Windows paths
|| **fnamep == '/' || **fnamep == '\\'
#endif
)
int cx = NUL;
int cy = NUL;
-#ifdef MSWIN
+# ifdef MSWIN
/*
- * To allow proper comparisson of absolute paths:
+ * To allow proper comparison of absolute paths:
* - one with explicit drive letter C:\xxx
* - another with implicit drive letter \xxx
* advance the pointer, of the explicit one, to skip the drive
py += mb_ptr2len(py);
cy = PTR2CHAR(py);
if (cy == ':' && drive == _getdrive())
- { // skip the drive for comparisson
+ { // skip the drive for comparison
py += mb_ptr2len(py);
break;
}
px = py;
py = tmp;
}
-#endif
+# endif
while (len > 0)
{
mch_isFullName(char_u *fname)
{
// A name like "d:/foo" and "//server/share" is absolute. "d:foo" is not.
- // /foo and \foo are absolute too because windows keeps a current drive.
+ // /foo and \foo are absolute too because Windows keeps a current drive.
// Another way to check is to use mch_FullName() and see if the result is
// the same as the name or mch_FullName() fails. However, this has quite a
// bit of overhead, so let's not do that.
set cdpath&
if has('win32')
- " Test windows absolute path completion
+ " Test Windows absolute path completion
" Retrieve a suitable dir in the current drive
let dir = readdir('/', 'isdirectory("/" .. v:val) && len(v:val) > 2')[-1]
" Get partial path