Fixed editor text selection