Yasuhiro Matsumoto wrote:
> I updated patch
>
> https://gist.github.com/mattn/6444548
About this part:
+#ifdef WIN3264
+ if (buf->b_fname != NULL && !mch_isFullName(buf->b_fname))
+ {
+ char *t;
+ buf_fname = (char *)vim_strsave(buf->b_fname);
+ for (t = gettail(buf_fname); *t != NUL; mb_ptr_adv(t))
+ if (*t == ':')
+ *t = '%';
+ }
+
+#endif
It would be better to only make a copy of the file name when needed,
thus first check if there is a colon. That avoids the copy in most
cases.
--
"Hit any key to continue" is a lie.
/// 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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.