Skip to content

Commit

Permalink
Merge pull request #3214 from Injae-Lee/fix-cjk-overlapping
Browse files Browse the repository at this point in the history
Fix #1287: CJK characters(korean) overlap each other in insert mode
  • Loading branch information
jpoon authored Nov 24, 2018
2 parents cafc606 + cddc149 commit aebc42c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,16 +245,21 @@ export async function activate(context: vscode.ExtensionContext) {

overrideCommand(context, 'compositionStart', async () => {
taskQueue.enqueueTask(async () => {
compositionState.isInComposition = true;
const mh = await getAndUpdateModeHandler();
if (mh.vimState.currentMode !== ModeName.Insert) {
compositionState.isInComposition = true;
}
});
});

overrideCommand(context, 'compositionEnd', async () => {
taskQueue.enqueueTask(async () => {
const mh = await getAndUpdateModeHandler();
let text = compositionState.composingText;
compositionState.reset();
await mh.handleMultipleKeyEvents(text.split(''));
if (mh.vimState.currentMode !== ModeName.Insert) {
let text = compositionState.composingText;
compositionState.reset();
await mh.handleMultipleKeyEvents(text.split(''));
}
});
});

Expand Down

0 comments on commit aebc42c

Please sign in to comment.