text: add an undo item before starting to comment or uncomment lines
By moving the test for the only situation where do_comment() does nothing (when only the magic line is selected) further up front, the add_undo() can be called before the commenting/uncommenting starts and two variables and an extra function are made unnecessary.
Showing
+16 -38
Please register or sign in to comment