remove <any> casts for .isWrapped

This commit is contained in:
Jörg Breitbart
2018-08-26 16:04:52 +02:00
parent cee432a66a
commit 77cb697990
7 changed files with 27 additions and 27 deletions
+2 -2
View File
@@ -269,11 +269,11 @@ export class Buffer implements IBuffer {
let first = y;
let last = y;
// Scan upwards for wrapped lines
while (first > 0 && (<any>this.lines.get(first)).isWrapped) {
while (first > 0 && this.lines.get(first).isWrapped) {
first--;
}
// Scan downwards for wrapped lines
while (last + 1 < this.lines.length && (<any>this.lines.get(last + 1)).isWrapped) {
while (last + 1 < this.lines.length && this.lines.get(last + 1).isWrapped) {
last++;
}
return { first, last };