ensuring that both start and end line in selected block are editable