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

Method Append

purepad/evalview.cpp:199–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199void CEvalView::Append(LPCTSTR lpszText, BOOL mark)
200{
201 CEdit &edit = GetEditCtrl();
202 if (CMainFrame::m_nLogMaxLines > 0)
203 limit_buffer(edit, CMainFrame::m_nLogMaxLines -
204 count_lines(lpszText));
205 int len = edit.GetWindowTextLength();
206 edit.SetSel(len, len);
207 if (lpszText) {
208 edit.ReplaceSel(lpszText);
209 if (mark && lpszText) {
210 LPCTSTR p = strrchr(lpszText, '\n');
211 if (p)
212 m_strPMark = p+1;
213 else
214 m_strPMark += lpszText;
215 }
216 }
217}
218
219void CEvalView::AppendNewLine(LPCTSTR lpszText,
220 BOOL mark)

Callers 1

OnCharMethod · 0.45

Calls 2

limit_bufferFunction · 0.85
count_linesFunction · 0.85

Tested by

no test coverage detected