kien/ctrlp.vim — Issue #91: Files list broken on windows root directory
Author: SpudNyk
Created: 2012-01-18 16:17:56+00:00
State: open

if the root directory on windows is used as the current directory the files list build but ctrlp#rmbasedir strips the leading character of the filename

I believe the problem is because because getcwd() returns 'X:\' for the root of x if it's a subdirectory the trailing slash is not included.
I did a quick kludge to check fixing ctrlp#rmbasedir to not strip the extra character which worked for building the list, however when opening the file using CtrlP the path included an extra slash ( X:\file.txt -> X:\\file.txt ) vim unfortunately thinks X:\file.txt and X:\\file.txt are separate files. resulting in a new buffer and conflicts if that file was already open.