1
0
forked from aniani/vim

updated for version 7.3.516

Problem:    extend(o, o) may crash Vim.
Solution:   Fix crash and add test. (Thinca and Hirohito Higashi)
This commit is contained in:
Bram Moolenaar
2012-05-18 12:07:05 +02:00
parent 8071607aa5
commit 2fc8802fcc
4 changed files with 25 additions and 1 deletions

View File

@@ -10191,7 +10191,7 @@ f_extend(argvars, rettv)
EMSG2(_("E737: Key already exists: %s"), hi2->hi_key);
break;
}
else if (*action == 'f')
else if (*action == 'f' && HI2DI(hi2) != di1)
{
clear_tv(&di1->di_tv);
copy_tv(&HI2DI(hi2)->di_tv, &di1->di_tv);