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

Method jumpToNextFile

apps/lib/diff/diffwidget.cpp:1283–1299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1281}
1282
1283void DiffWidget::jumpToNextFile()
1284{
1285 const int block = m_left->firstVisibleBlockNumber();
1286 int nextFileLineNo = 0;
1287 for (int i : m_linesWithFileName) {
1288 if (i > block) {
1289 nextFileLineNo = i;
1290 break;
1291 }
1292 }
1293
1294 QScopedValueRollback r(m_stopScrollSync, true);
1295 m_left->scrollToBlock(nextFileLineNo, true);
1296 if (m_style == SideBySide) {
1297 m_right->scrollToBlock(nextFileLineNo, true);
1298 }
1299}
1300
1301void DiffWidget::jumpToPrevFile()
1302{

Callers

nothing calls this directly

Calls 2

scrollToBlockMethod · 0.80

Tested by

no test coverage detected