On 04/11/2005, at 19.58, thomas Aylott wrote:
Ok, this doesn't seem to be working out in real life. [...] we've solved 1 problem and created another. oi.
I don't know what the right logic should be.
I see -- I think a solution would be to look at the scope before/ after the selection, and the scope of the first/last character in the selection, and then use the common prefix of these 4 scopes, as the scope of the selection.