Fix for cursors with empty selection.