0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.0023

This commit is contained in:
Bram Moolenaar
2004-12-19 22:46:22 +00:00
parent 46c9c73de8
commit 1cd871b534
76 changed files with 2397 additions and 1391 deletions

View File

@@ -2976,22 +2976,13 @@ maketitle()
off += 2;
#endif
/* remove the file name */
p = gettail(buf + off);
p = gettail_sep(buf + off);
if (p == buf + off)
{
/* must be a help buffer */
STRCPY(buf + off, _("help"));
}
else
{
while (p > buf + off + 1 && vim_ispathsep(p[-1]))
--p;
#ifdef VMS
/* path separator is part of the path */
++p;
#endif
*p = NUL;
}
/* translate unprintable chars */
p = transstr(buf + off);
STRNCPY(buf + off, p, IOSIZE - off);