diff --git a/main.ts b/main.ts index ec5b79f..ec72efe 100644 --- a/main.ts +++ b/main.ts @@ -161,19 +161,20 @@ export default class VimImPlugin extends Plugin { } this.currentInsertIM = stdout; console.debug(`obtain im: ${this.currentInsertIM}`); - }); - } - //[1]: Switch to default im - if (typeof switchFromInsert != 'undefined' && switchFromInsert) { - exec(switchFromInsert, (error: any, stdout: any, stderr: any) => { - if (error) { - console.error(`switch error: ${error}`); - return; + + //[1]: Switch to default im + if (typeof switchFromInsert != 'undefined' && switchFromInsert) { + exec(switchFromInsert, (error: any, stdout: any, stderr: any) => { + if (error) { + console.error(`switch error: ${error}`); + return; + } + console.debug(`switch im: ${switchFromInsert}`); + }); } - console.debug(`switch im: ${switchFromInsert}`); + this.previousMode = "normal" }); } - this.previousMode = "normal" } diff --git a/manifest.json b/manifest.json index 01bbbe5..20ea6e1 100644 --- a/manifest.json +++ b/manifest.json @@ -1,10 +1,10 @@ { "id": "vim-im-select", "name": "Vim IM Select", - "version": "0.1.3", + "version": "0.1.4", "minAppVersion": "0.12.0", "description": "Support auto select the apposite input method in different vim mode", "author": "Alonelur", "authorUrl": "https://github.com/ALONELUR", "isDesktopOnly": true -} \ No newline at end of file +} diff --git a/versions.json b/versions.json index b566029..038fe88 100644 --- a/versions.json +++ b/versions.json @@ -3,5 +3,6 @@ "0.0.2": "0.12.0", "0.1.0": "0.12.0", "0.1.1": "0.12.0", - "0.1.3": "0.12.0" -} \ No newline at end of file + "0.1.3": "0.12.0", + "0.1.4": "0.12.0" +}