TextSelection switched to use treePaths instead of treeIndexes