Fixed: #1863 Selector width info is wrong when no space before '{'

Fixed: #1863 and also fixed a few other cases where selection was incorrect