summaryrefslogtreecommitdiff
path: root/src/mark.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-06-06 21:50:35 +0000
committerBram Moolenaar <Bram@vim.org>2005-06-06 21:50:35 +0000
commitcfc6c43ce2fe59ccc7e48785e6c20126f0ee9d7f (patch)
tree63025d6f4f00fd9a8bbf5760cbdeb1ca6cccf97f /src/mark.c
parentfb67026c27b8fd8be556beee2387c0308243b15e (diff)
downloadvim-git-cfc6c43ce2fe59ccc7e48785e6c20126f0ee9d7f.tar.gz
updated for version 7.0081
Diffstat (limited to 'src/mark.c')
-rw-r--r--src/mark.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mark.c b/src/mark.c
index 6a149bfac..c804d1eda 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;
+ size_t 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);