Fixed cursor being moved to end on search bug. https://github.com/enturn/brackets-quick-search/issues/2
Fixed isWordSelected.