(str)
| 398 | } |
| 399 | |
| 400 | function firstLine(str) { |
| 401 | var end = str.indexOf("\n"); |
| 402 | if (end < 0) return str; |
| 403 | return str.slice(0, end); |
| 404 | } |
| 405 | |
| 406 | function findMatchingPosition(line, file, near) { |
| 407 | var pos = Math.max(0, near - 500), closest = null; |