Mercurial > vim
comparison src/vim9cmds.c @ 26984:8dc4782b60ff v8.2.4021
patch 8.2.4021: missing part of the :import changes
Commit: https://github.com/vim/vim/commit/2ef01d929d094c9063a259a74e23cf61be74b9b6
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 6 21:38:11 2022 +0000
patch 8.2.4021: missing part of the :import changes
Problem: Missing part of the :import changes.
Solution: Add changes in vim9cmds.c.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 06 Jan 2022 22:45:04 +0100 |
parents | ccb9be1cdd71 |
children | 6fc63c6a7ee7 |
comparison
equal
deleted
inserted
replaced
26983:92246fa87635 | 26984:8dc4782b60ff |
---|---|
139 // | 139 // |
140 // Figure out the LHS type and other properties. | 140 // Figure out the LHS type and other properties. |
141 // | 141 // |
142 ret = compile_lhs(p, &lhs, CMD_unlet, FALSE, 0, cctx); | 142 ret = compile_lhs(p, &lhs, CMD_unlet, FALSE, 0, cctx); |
143 | 143 |
144 // : unlet an indexed item | 144 // Use the info in "lhs" to unlet the item at the index in the |
145 if (!lhs.lhs_has_index) | 145 // list or dict. |
146 { | 146 if (ret == OK) |
147 iemsg("called compile_lhs() without an index"); | 147 { |
148 ret = FAIL; | 148 if (!lhs.lhs_has_index) |
149 } | 149 { |
150 else | 150 semsg(_(e_cannot_unlet_imported_item_str), p); |
151 { | 151 ret = FAIL; |
152 // Use the info in "lhs" to unlet the item at the index in the | 152 } |
153 // list or dict. | 153 else |
154 ret = compile_assign_unlet(p, &lhs, FALSE, &t_void, cctx); | 154 ret = compile_assign_unlet(p, &lhs, FALSE, &t_void, cctx); |
155 } | 155 } |
156 | 156 |
157 vim_free(lhs.lhs_name); | 157 vim_free(lhs.lhs_name); |
158 } | 158 } |
159 else if (check_vim9_unlet(p) == FAIL) | 159 else if (check_vim9_unlet(p) == FAIL) |