Sometimes the editor behaves not like expected.
Indentation is wrong after adding new line after a function which is written over several lines. Cursor should stay at the red line as the variable “result”.
2. Indentations of function are wrong after copying the function. When the marked string in the image is copied and pasted, too much spaces are added the all function lines.