mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
Otherwise, we end up duplicating it. This logic shouldn't apply if the fragment being pasted will be inserted on the previous line which should actually happen only if there was no selection in the editor, just the caret preceding a line -- I additionally enforced this requirement. Added tests covering the original issue and some of its duplicates (PY-29506).
10 lines
432 B
Python
10 lines
432 B
Python
def func():
|
|
for des_name, comp in keys_to_delete:
|
|
cc_list = cell_classes_by_comp_dict[comp]
|
|
if len(cc_list) == 1:
|
|
del cell_classes_by_comp_dict[comp]
|
|
else:
|
|
new_cc_list = [cc for cc in cc_list if cc.design_name != des_name]
|
|
cell_classes_by_comp_dict[comp] = copy.deepcopy(new_cc_list)
|
|
<caret>cell_classes_by_comp_dict = \
|
|
deepcopy(cell_classes_by_comp_dict) |