MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / uncommentLine

Method uncommentLine

src/ScintillaCommenter.cpp:85–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void ScintillaCommenter::uncommentLine(int line)
86{
87 auto indentPos = editor->lineIndentPosition(line);
88 auto lineEnd = qMin(indentPos + editor->languageSingleLineComment.length(), editor->lineEndPosition(line));
89 const QByteArray commentText = editor->get_text_range(indentPos, lineEnd);
90
91 if (commentText == editor->languageSingleLineComment) {
92 editor->deleteRange(indentPos, editor->languageSingleLineComment.length());
93
94 st.trackDeletion(indentPos, editor->languageSingleLineComment.length());
95 }
96}

Callers

nothing calls this directly

Calls 2

lengthMethod · 0.80
trackDeletionMethod · 0.80

Tested by

no test coverage detected