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

Method gotoPreviousMark

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

Source from the content-addressed store, hash-verified

456}
457
458void TextEditorPrivate::gotoPreviousMark(uint mask)
459{
460 int line = q->currentLineNumber() - 1;
461 int newLine = q->markerFindPrevious(line, mask);
462
463 if (-1 == newLine) {
464 line = q->currentLineNumber();
465 newLine = q->markerFindPrevious(line, mask);
466 }
467
468 if (-1 != newLine)
469 q->gotoLine(newLine);
470}
471
472QsciStyle TextEditorPrivate::createAnnotationStyle(int type)
473{

Callers 2

gotoPreviousBookmarkMethod · 0.80

Calls 3

currentLineNumberMethod · 0.80
markerFindPreviousMethod · 0.80
gotoLineMethod · 0.45

Tested by

no test coverage detected