| 1276 | } |
| 1277 | |
| 1278 | int 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 | |
| 1291 | int Document::ParaDown(int pos) { |
| 1292 | int line = LineFromPosition(pos); |
no test coverage detected