mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 9.0.0949: crash when unletting a variable while listing variables
Problem: Crash when unletting a variable while listing variables. Solution: Disallow changing a hashtable while going over the entries. (closes #11435)
This commit is contained in:
@@ -2366,7 +2366,7 @@ execute_unletindex(isn_T *iptr, ectx_T *ectx)
|
||||
NULL, FALSE))
|
||||
status = FAIL;
|
||||
else
|
||||
dictitem_remove(d, di);
|
||||
dictitem_remove(d, di, "unlet");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user