Skip to content

Commit

Permalink
use instanceof to check Array
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Sep 6, 2016
1 parent 94ab937 commit a79fcc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actions/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ class CommandInsertRegisterContent extends BaseCommand {
const register = await Register.get(vimState);
let text: string;

if (typeof register.text === "object") {
if (register.text instanceof Array) {
text = (register.text as string []).join("\n");
} else {
text = register.text;
Expand Down

0 comments on commit a79fcc1

Please sign in to comment.