fixed style violations

This commit is contained in:
Pete Gleeson 2016-04-28 22:20:37 +10:00
parent 312a4f7930
commit 4b43f51e8e
2 changed files with 12 additions and 12 deletions

View File

@ -18,16 +18,16 @@ export class PutOperator extends Operator {
* Run this operator on a range.
*/
public async run(start: Position, end: Position): Promise<void> {
return new Promise<void>((resolve, reject) => {
paste(async (err, data) => {
if (err) {
reject();
} else {
await TextEditor.insertAt(data, start.getRight());
this.modeHandler.currentMode.motion.moveTo(start.line, start.getRight().character);
resolve();
}
})
});
return new Promise<void>((resolve, reject) => {
paste(async (err, data) => {
if (err) {
reject();
} else {
await TextEditor.insertAt(data, start.getRight());
this.modeHandler.currentMode.motion.moveTo(start.line, start.getRight().character);
resolve();
}
});
});
}
}

View File

@ -2,7 +2,7 @@
import * as assert from 'assert';
import * as vscode from 'vscode';
import { copy, paste } from "copy-paste";
import { copy } from "copy-paste";
import { ModeHandler } from "../../src/mode/modeHandler";
import { PutOperator } from "../../src/operator/put";
import { TextEditor } from '../../src/textEditor';