MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / ParaUp

Method ParaUp

scintilla/src/Document.cxx:1278–1289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1276}
1277
1278int Document::ParaUp(int pos) {
1279 int line = LineFromPosition(pos);
1280 line--;
1281 while (line >= 0 && IsWhiteLine(line)) { // skip empty lines
1282 line--;
1283 }
1284 while (line >= 0 && !IsWhiteLine(line)) { // skip non-empty lines
1285 line--;
1286 }
1287 line++;
1288 return LineStart(line);
1289}
1290
1291int Document::ParaDown(int pos) {
1292 int line = LineFromPosition(pos);

Callers 1

ParaUpOrDownMethod · 0.80

Calls 1

LineStartFunction · 0.85

Tested by

no test coverage detected