MCPcopy Create free account
hub / github.com/agraef/pure-lang / MarkLine

Method MarkLine

purepad/qpadView.cpp:209–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209void CQpadView::MarkLine(int lineno)
210{
211 CEdit& edit = GetEditCtrl();
212 int p = edit.LineIndex(lineno);
213 if (p != -1) {
214 int p2 = edit.LineIndex(lineno+1);
215 if (p2 == -1)
216 p2 = edit.GetWindowTextLength();
217 else
218 p2 -= 2; // CR/LF
219 edit.SetSel(p, p2);
220 }
221}

Callers 1

OnErrMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected