Fixed bug with check cursor in editor range.