MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / gotoNextPosition

Method gotoNextPosition

src/plugins/codeeditor/gui/tabwidget.cpp:767–781  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

765}
766
767void TabWidget::gotoNextPosition()
768{
769 if (d->nextPosRecord.isEmpty())
770 return;
771
772 auto record = d->nextPosRecord.takeFirst();
773 auto editor = d->findEditor(record.fileName);
774 if (!editor)
775 return;
776
777 d->curPosRecord = record;
778 d->prePosRecord.append(record);
779 d->tabBar->switchTab(record.fileName);
780 editor->gotoPosition(record.pos);
781}
782
783void TabWidget::gotoPreviousPosition()
784{

Callers 1

handleForwardMethod · 0.80

Calls 5

findEditorMethod · 0.80
switchTabMethod · 0.80
isEmptyMethod · 0.45
appendMethod · 0.45
gotoPositionMethod · 0.45

Tested by

no test coverage detected