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

Method commentLine

src/ScintillaCommenter.cpp:71–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void 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
85void ScintillaCommenter::uncommentLine(int line)
86{

Callers

nothing calls this directly

Calls 2

trackInsertionMethod · 0.80
lengthMethod · 0.80

Tested by

no test coverage detected