diff options
author | Bram Moolenaar <Bram@vim.org> | 2004-12-19 22:46:22 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2004-12-19 22:46:22 +0000 |
commit | 1cd871b5341bf43ee99e136844e3131014880f92 (patch) | |
tree | 6bd9573dbc14de3c4ec85e424cbec9c8d1ee0ed8 /src/buffer.c | |
parent | 46c9c73de8def79baf8f0a34a12549f6c14944f3 (diff) | |
download | vim-git-1cd871b5341bf43ee99e136844e3131014880f92.tar.gz |
updated for version 7.0023v7.0023
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/buffer.c b/src/buffer.c index f02c00d25..19dcb593d 100644 --- 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); |