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