mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.4021: missing part of the :import changes
Problem: Missing part of the :import changes. Solution: Add changes in vim9cmds.c.
This commit is contained in:
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4021,
|
||||||
/**/
|
/**/
|
||||||
4020,
|
4020,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -141,17 +141,17 @@ compile_unlet(
|
|||||||
//
|
//
|
||||||
ret = compile_lhs(p, &lhs, CMD_unlet, FALSE, 0, cctx);
|
ret = compile_lhs(p, &lhs, CMD_unlet, FALSE, 0, cctx);
|
||||||
|
|
||||||
// : unlet an indexed item
|
// Use the info in "lhs" to unlet the item at the index in the
|
||||||
if (!lhs.lhs_has_index)
|
// list or dict.
|
||||||
|
if (ret == OK)
|
||||||
{
|
{
|
||||||
iemsg("called compile_lhs() without an index");
|
if (!lhs.lhs_has_index)
|
||||||
ret = FAIL;
|
{
|
||||||
}
|
semsg(_(e_cannot_unlet_imported_item_str), p);
|
||||||
else
|
ret = FAIL;
|
||||||
{
|
}
|
||||||
// Use the info in "lhs" to unlet the item at the index in the
|
else
|
||||||
// list or dict.
|
ret = compile_assign_unlet(p, &lhs, FALSE, &t_void, cctx);
|
||||||
ret = compile_assign_unlet(p, &lhs, FALSE, &t_void, cctx);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
vim_free(lhs.lhs_name);
|
vim_free(lhs.lhs_name);
|
||||||
|
Reference in New Issue
Block a user