Open j5shi opened 8 years ago
Given fname = C:\apps\cygwin\usr\include\bash\general.h, after parsing, bufid will be D:\apps\cygwin\usr\include\bash\general.h in some cases, which is incorrect.
fname
C:\apps\cygwin\usr\include\bash\general.h
bufid
D:\apps\cygwin\usr\include\bash\general.h
I think fnamemodify(fname, ':p') works, but I don't know why you wrote it as fnamemodify(fname[2:], ':p'), is it designed for some exceptions?
fnamemodify(fname, ':p')
fnamemodify(fname[2:], ':p')
Given
fname
=C:\apps\cygwin\usr\include\bash\general.h
, after parsing,bufid
will beD:\apps\cygwin\usr\include\bash\general.h
in some cases, which is incorrect.