|
|
@ -142,7 +142,7 @@ StateBlock.prototype.getLines = function getLines(begin, end, indent, keepLastLF |
|
|
|
// Opt: don't use push queue for single line;
|
|
|
|
if (line + 1 === end) { |
|
|
|
first = this.bMarks[line] + Math.min(this.tShift[line], indent); |
|
|
|
last = keepLastLF ? this.bMarks[end] : this.eMarks[end - 1]; |
|
|
|
last = this.eMarks[end - 1] + (keepLastLF ? 1 : 0); |
|
|
|
return this.src.slice(first, last); |
|
|
|
} |
|
|
|
|
|
|
|