if (!editable->has_selection) return NULL;
+ if (editable->selection_start_pos == editable->selection_end_pos)
+ return NULL;
+
if (editable->selection_start_pos < editable->selection_end_pos) {
start_pos = editable->selection_start_pos;
end_pos = editable->selection_end_pos;