• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revisão801d5544828215bf644cbc6ababfc66beec6cb2d (tree)
Hora2008-01-04 04:22:13
Autorvimboss
Commitervimboss

Mensagem de Log

updated for version 7.1-195

Mudança Sumário

Diff

diff -r ae7e29b64923 -r 801d55448282 src/mark.c
--- a/src/mark.c Thu Jan 03 17:56:04 2008 +0000
+++ b/src/mark.c Thu Jan 03 19:22:13 2008 +0000
@@ -505,9 +505,24 @@
505505 {
506506 /*
507507 * First expand "~/" in the file name to the home directory.
508- * Try to shorten the file name.
508+ * Don't expand the whole name, it may contain other '~' chars.
509509 */
510- expand_env(fm->fname, NameBuff, MAXPATHL);
510+ if (fm->fname[0] == '~' && (fm->fname[1] == '/'
511+#ifdef BACKSLASH_IN_FILENAME
512+ || fm->fname[1] == '\\'
513+#endif
514+ ))
515+ {
516+ int len;
517+
518+ expand_env((char_u *)"~/", NameBuff, MAXPATHL);
519+ len = STRLEN(NameBuff);
520+ vim_strncpy(NameBuff + len, fm->fname + 2, MAXPATHL - len - 1);
521+ }
522+ else
523+ vim_strncpy(NameBuff, fm->fname, MAXPATHL - 1);
524+
525+ /* Try to shorten the file name. */
511526 mch_dirname(IObuff, IOSIZE);
512527 p = shorten_fname(NameBuff, IObuff);
513528
diff -r ae7e29b64923 -r 801d55448282 src/version.c
--- a/src/version.c Thu Jan 03 17:56:04 2008 +0000
+++ b/src/version.c Thu Jan 03 19:22:13 2008 +0000
@@ -667,6 +667,8 @@
667667 static int included_patches[] =
668668 { /* Add new patch number below this line */
669669 /**/
670+ 195,
671+/**/
670672 194,
671673 /**/
672674 193,
Show on old repository browser