Running the toggle command via a keymap multiple times within the same file was always returning the first toggled line rather than updating the cursor position and using the next line.