I'm working this but I can't get solved yet. vim_FullName can't get original filename.
'c:/docume~1/mattn' is full path. And GetFullPathName don't expand short name. I had another issue even if my patch is included. If user make Dictionary that has keys of loaded script filename, I guess the user hope to normalize filename, i.e. key of the dict. They will use ":scriptnames" show up messages. But it's relative names from ~/. And, <sfile> return full path (but not long path). Currently vim doesn't provide way to convert short filename to long filename. Then, it may duplicate entries. I'm finding way to fix this problem. On Saturday, May 19, 2012 12:03:31 AM UTC+9, Bram Moolenaar wrote: > Yasuhiro Matsumoto wrote: > > > On Friday, April 20, 2012 11:13:40 PM UTC+9, Bram Moolenaar wrote: > > > Why use the GetLongPathName function? It's not used anywhere in Vim. > > > Can we use vim_FullName() with the force argument set to TRUE? > > > > > > I suppose this is only needed for MS-Windows. Since expanding a path is > > > expensive we might first check if the "~" character appears in the > > > string. > > > > You are right. Thanks. > > I have not received an update patch yet. Are you still working on this? > > -- > Friends? I have lots of friends! In fact, I have all episodes ever made. > > /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ > /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ > \\\ an exciting new programming language -- http://www.Zimbu.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
