MCPcopy Create free account
hub / github.com/KDE/kate / firstVisibleLineNumber

Method firstVisibleLineNumber

apps/lib/diff/diffeditor.cpp:488–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486}
487
488int DiffEditor::firstVisibleLineNumber() const
489{
490 const int block = firstVisibleBlockNumber();
491 const int last = document()->blockCount();
492 for (int i = block; i < last; ++i) {
493 int lineNo = m_lineNumArea->lineNumForBlock(i);
494 if (lineNo != -1) {
495 return lineNo;
496 }
497 }
498 return -1;
499}
500
501void DiffEditor::scrollToLineNumber(int lineNo)
502{

Callers 1

Calls 1

lineNumForBlockMethod · 0.80

Tested by

no test coverage detected