Skip to content

Commit

Permalink
untitled - do not set mode when pasting anywhere outside line 1, colu…
Browse files Browse the repository at this point in the history
…mn 1
  • Loading branch information
bpasero committed Feb 12, 2020
1 parent 3465347 commit 7e0133d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export class TextResourceEditor extends AbstractTextResourceEditor {
}

private onDidEditorPaste(e: IPasteEvent, codeEditor: ICodeEditor): void {
if (e.range.startLineNumber !== 1 && e.range.startColumn !== 1) {
if (e.range.startLineNumber !== 1 || e.range.startColumn !== 1) {
return; // only when pasting into first line, first column (= empty document)
}

Expand Down

0 comments on commit 7e0133d

Please sign in to comment.