fix update_preferred_line_offset
refine Selection.transform()
add selection transform: extend inside/around brackets