..how it should be by adding brackets to each line of the block
- Ensure the new added brackets will never be part of the selection
- Encapsulate in editBegin/End
- Reduce if/else nesting which make this patch looking bad, sorry
BUG:382213
Fixed in: 5.57