Resolved issue #4 "cursor position after expanding".