QCodeEdit comment text patch

This commit is contained in:
2020-10-08 00:00:14 +03:00
parent aa906610b4
commit cadfe1259e

View File

@@ -753,7 +753,7 @@ void QCodeEdit::toggleComment() {
int line = tc.blockNumber();
if (need_comment) {
if (!comms[line]) {
tc.insertText("//");
tc.insertText(comment_text);
se_ += comment_text.size();
if (first) ss_ += comment_text.size();
}