| 596 | return this; |
| 597 | } |
| 598 | lastChar() { |
| 599 | if (this.outro.length) return this.outro[this.outro.length - 1]; |
| 600 | let chunk = this.lastChunk; |
| 601 | do { |
| 602 | if (chunk.outro.length) return chunk.outro[chunk.outro.length - 1]; |
| 603 | if (chunk.content.length) return chunk.content[chunk.content.length - 1]; |
| 604 | if (chunk.intro.length) return chunk.intro[chunk.intro.length - 1]; |
| 605 | } while ((chunk = chunk.previous)); |
| 606 | if (this.intro.length) return this.intro[this.intro.length - 1]; |
| 607 | return ''; |
| 608 | } |
| 609 | lastLine() { |
| 610 | let lineIndex = this.outro.lastIndexOf(n); |
| 611 | if (lineIndex !== -1) return this.outro.substr(lineIndex + 1); |