Style selection in the tree after caret position changed