0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

updated for version 7.1-199

This commit is contained in:
Bram Moolenaar
2008-01-04 14:17:47 +00:00
parent 12ddc3e02c
commit 066b62206f
3 changed files with 12 additions and 2 deletions

View File

@@ -4078,6 +4078,7 @@ addstar(fname, len, context)
* ~ would be at the start of the file name, but not the tail.
* $ could be anywhere in the tail.
* ` could be anywhere in the file name.
* When the name ends in '$' don't add a star, remove the '$'.
*/
tail = gettail(retval);
if ((*retval != '~' || tail != retval)
@@ -4085,6 +4086,8 @@ addstar(fname, len, context)
&& vim_strchr(tail, '$') == NULL
&& vim_strchr(retval, '`') == NULL)
retval[len++] = '*';
else if (len > 0 && retval[len - 1] == '$')
--len;
retval[len] = NUL;
}
}