mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
If pasted fragment can belong to several statements lists depending on its indentation we let user to choose by using indentation before the caret. However it's not allowed to insert new text so that it breaks existing block structure, i.e. we constrain minimum and maximum possible indentation.
8 lines
136 B
Python
8 lines
136 B
Python
def f():
|
|
if True:
|
|
try:
|
|
pass
|
|
finally:
|
|
pass
|
|
<caret>
|
|
pass |