diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-06-04 21:55:20 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-06-04 21:55:20 +0000 |
commit | 51485f06246966898f7c00e2e53b1ba4c6855cf7 (patch) | |
tree | c1cfe02ab088ea7a4423f15829e4083303d62a89 /src/mark.c | |
parent | 4debb442bd885d182d7f77d1dfcdf143fd7cbf88 (diff) | |
download | vim-git-51485f06246966898f7c00e2e53b1ba4c6855cf7.tar.gz |
updated for version 7.0079
Diffstat (limited to 'src/mark.c')
-rw-r--r-- | src/mark.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mark.c b/src/mark.c index 6a149bfac..9d74b4a7c 100644 --- a/src/mark.c +++ b/src/mark.c @@ -1445,6 +1445,7 @@ removable(name) char_u *p; char_u part[51]; int retval = FALSE; + int n; name = home_replace_save(NULL, name); if (name != NULL) @@ -1452,11 +1453,14 @@ removable(name) for (p = p_viminfo; *p; ) { copy_option_part(&p, part, 51, ", "); - if (part[0] == 'r' - && MB_STRNICMP(part + 1, name, STRLEN(part + 1)) == 0) + if (part[0] == 'r') { - retval = TRUE; - break; + n = STRLEN(part + 1); + if (MB_STRNICMP(part + 1, name, n) == 0) + { + retval = TRUE; + break; + } } } vim_free(name); |