#218 cursor set range with bound