QCodeEdit comment text patch
This commit is contained in:
@@ -753,7 +753,7 @@ void QCodeEdit::toggleComment() {
|
|||||||
int line = tc.blockNumber();
|
int line = tc.blockNumber();
|
||||||
if (need_comment) {
|
if (need_comment) {
|
||||||
if (!comms[line]) {
|
if (!comms[line]) {
|
||||||
tc.insertText("//");
|
tc.insertText(comment_text);
|
||||||
se_ += comment_text.size();
|
se_ += comment_text.size();
|
||||||
if (first) ss_ += comment_text.size();
|
if (first) ss_ += comment_text.size();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user