Fix 'getSelectionEnd'
Merge pull request #32 from raboof/getSelectionEnd

Fix 'getSelectionEnd'