mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-09-11 20:27:17 +03:00
Merge pull request #3214 from Injae-Lee/fix-cjk-overlapping
Fix #1287: CJK characters(korean) overlap each other in insert mode
This commit is contained in:
commit
aebc42cd0e
13
extension.ts
13
extension.ts
@ -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(''));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user