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

Method gotoNextMark

src/plugins/codeeditor/gui/private/texteditor_p.cpp:444–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444void TextEditorPrivate::gotoNextMark(uint mask)
445{
446 int line = q->currentLineNumber() + 1;
447 int newLine = q->markerFindNext(line, mask);
448
449 if (-1 == newLine) {
450 line = 0;
451 newLine = q->markerFindNext(line, mask);
452 }
453
454 if (-1 != newLine)
455 q->gotoLine(newLine);
456}
457
458void TextEditorPrivate::gotoPreviousMark(uint mask)
459{

Callers 2

gotoNextBreakpointMethod · 0.80
gotoNextBookmarkMethod · 0.80

Calls 3

currentLineNumberMethod · 0.80
markerFindNextMethod · 0.80
gotoLineMethod · 0.45

Tested by

no test coverage detected