Mercurial > vim
diff src/buffer.c @ 39:410fa1a31baf v7.0023
updated for version 7.0023
author | vimboss |
---|---|
date | Sun, 19 Dec 2004 22:46:22 +0000 |
parents | 125e80798a85 |
children | f1d2a58883b9 |
line wrap: on
line diff
--- a/src/buffer.c +++ b/src/buffer.c @@ -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);