Nazri Ramliy wrote: > I wrote earlier: > > To make test73 pass on unix, msvc-vim and djggp-vim I'll use > > uppercase letters for all the directory names that it uses (unless > > someone has a better idea). > > I didn't work. > > The test still fails due to the different ordering of the find > completion candidates: > > $ ls -RF XFIND/ > XFIND/: > file.txt IN/ > > XFIND/IN: > file.txt PATH/ > > XFIND/IN/PATH: > file.txt > > $ vim -u NONE -c 'set nocp path=XFIND/**' > > On djgpp-vim: > > :find fi<Ctrl+d> > IN\file.txt c:\src\vim\src\testdir\XFIND\file.txt > PATH\file.txt > > while on unix: > > :find fi<Ctrl+d> > /home/nazri/src/vim/src/testdir/XFIND/file.txt PATH/file.txt > IN/file.txt > > The the full path names resulting from the disambiguation of file.txt > results in the different ordering of the completion candidates for > windows (djgpp) and unix.
The full path names are not nice. Not only for the test but also for interactive use. I think we should replace the current directory with "./" when possible. > For this reason test73 fails when run with djgpp-vim, but the find > completion seems > to be fine with the attached patch. > > (Side note: Using the uppercase filename is good in that it makes sure > that the ordering are not affected if someone runs the test from, say, > the Z: drive because it seems like the drive letter is kept at > lowercase.) > > Bram, does this warrant a separate test file for test73 on windows, to cater > for djgpp? I don't like using a separate test depending on the platform. It makes maintenance a lot more work. > Attached patch fixes the detection of Windows for djgpp. No > modification done to test73 yet. Thanks, this should at least fix some problems. -- Q. What happens to programmers when they die? A: MS-Windows programmers are reinstalled. C++ programmers become undefined, anyone who refers to them will die as well. Java programmers reincarnate after being garbage collected. /// Bram Moolenaar -- b...@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 /// -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php