Hi all,
On MS-Windows, Vim (7.1.267) hangs when executing the following command:
:echo fnamemodify('c:\abc\abc', ':8')
Is anybody else able to reproduce this issue?
It looks like Vim is stuck in the shortpath_for_invalid_fname() function in the
eval.c file. The below patch seems to fix the problem.
-------------------------------------------------------------------------------------------------------
*** vim7\src\eval.c
--- eval.c
*************** shortpath_for_invalid_fname(fname, bufp,
*** 21140,21145 ****
--- 21140,21149 ----
return -1;
}
*s = ch; /* Preserve the string */
+ if (plen == 0) {
+ --s;
+ ++slen;
+ }
} while (plen == 0);
if (plen > 0)
-------------------------------------------------------------------------------------------------------
- Yegappan
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---