diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ex_getln.c | 3 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 7d543f249..547f1a17b 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -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; } } diff --git a/src/version.c b/src/version.c index 7f2739b23..42138ca9b 100644 --- a/src/version.c +++ b/src/version.c @@ -667,6 +667,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 199, +/**/ 198, /**/ 197, |