Correct line count when no selectors are present in edit mode