Get selected symbol correctly when code is folded