commit | 9192b7fe8c121661db803cd96146e823920acda0 | [log] [tgz] |
---|---|---|
author | Benno Schulenberg <bensberg@justemail.net> | Wed Jun 01 09:36:05 2016 +0200 |
committer | Benno Schulenberg <bensberg@justemail.net> | Tue Jun 07 11:08:06 2016 +0200 |
tree | 0c1e83b0194d3fe7509a18ac0de6df27c3f50b24 | |
parent | 5dee9fb2c663f698a107c4cea00772c9c5298e0e [diff] |
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.