reenabled @typescript-eslint/no-unnecessary-type-assertion

This commit is contained in:
Eugene Pankov
2021-01-02 20:48:37 +01:00
parent 154cc29333
commit e36bad2553
7 changed files with 7 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ export class PathDropDecorator extends TerminalDecorator {
this.subscribeUntilDetached(terminal, terminal.frontend?.dragOver$.subscribe(event => {
event.preventDefault()
}))
this.subscribeUntilDetached(terminal, terminal.frontend?.drop$.subscribe(event => {
this.subscribeUntilDetached(terminal, terminal.frontend?.drop$.subscribe((event: DragEvent) => {
for (const file of event.dataTransfer!.files as any) {
this.injectPath(terminal, file.path)
}

View File

@@ -298,7 +298,7 @@ export class XTermFrontend extends Frontend {
html += this.getLineAsHTML(selection.startRow, selection.startColumn, selection.endColumn)
} else {
html += this.getLineAsHTML(selection.startRow, selection.startColumn, this.xterm.cols)
for (let y = selection.startRow! + 1; y < selection.endRow; y++) {
for (let y = selection.startRow + 1; y < selection.endRow; y++) {
html += this.getLineAsHTML(y, 0, this.xterm.cols)
}
html += this.getLineAsHTML(selection.endRow, 0, selection.endColumn)