| 69 | } |
| 70 | |
| 71 | void ScintillaCommenter::commentLine(int line) |
| 72 | { |
| 73 | auto indentPos = editor->lineIndentPosition(line); |
| 74 | |
| 75 | // Don't comment lines with only indentation |
| 76 | if (indentPos == editor->lineEndPosition(line)) { |
| 77 | return; |
| 78 | } |
| 79 | |
| 80 | editor->insertText(indentPos, editor->languageSingleLineComment.constData()); |
| 81 | |
| 82 | st.trackInsertion(indentPos, editor->languageSingleLineComment.length()); |
| 83 | } |
| 84 | |
| 85 | void ScintillaCommenter::uncommentLine(int line) |
| 86 | { |
nothing calls this directly
no test coverage detected