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

Method jumpToPrevFile

apps/lib/diff/diffwidget.cpp:1301–1317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1299}
1300
1301void DiffWidget::jumpToPrevFile()
1302{
1303 const int block = m_left->firstVisibleBlockNumber();
1304 int prevFileLineNo = 0;
1305 for (auto i = m_linesWithFileName.crbegin(); i != m_linesWithFileName.crend(); ++i) {
1306 if (*i < block) {
1307 prevFileLineNo = *i;
1308 break;
1309 }
1310 }
1311
1312 QScopedValueRollback r(m_stopScrollSync, true);
1313 m_left->scrollToBlock(prevFileLineNo, true);
1314 if (m_style == SideBySide) {
1315 m_right->scrollToBlock(prevFileLineNo, true);
1316 }
1317}
1318
1319void DiffWidget::jumpToNextHunk()
1320{

Callers

nothing calls this directly

Calls 2

scrollToBlockMethod · 0.80

Tested by

no test coverage detected