Add more tests, fix boundary bug

This commit is contained in:
Daniel Imms
2018-06-02 18:07:49 -07:00
parent cd3418517e
commit 956b773421
3 changed files with 22 additions and 2 deletions
+1 -1
View File
@@ -267,7 +267,7 @@ export class Buffer implements IBuffer {
first--;
}
// Scan downwards for wrapped lines
while (last + 1 < this.lines.length - 1 && (<any>this.lines.get(last + 1)).isWrapped) {
while (last + 1 < this.lines.length && (<any>this.lines.get(last + 1)).isWrapped) {
last++;
}
return { first, last };