Upstream vscode-neovim/vscode-neovim state of the touched files before e9738b53f2

This commit is contained in:
upstream committed 2026-09-23 06:25:40 +02:00
1 parent aa086f6b53
commit 008cac1096
1 file changed
+30
+30
View File
@@ -305,4 +305,34 @@ describe("Multi-width characters", () => {
await sendEscapeKey();
});
it("Works - visual mode over consecutive non-BMP chars", async () => {
await openTextDocument({ content: ["a𝕜𝕝b"].join("\n") });
await sendVSCodeKeys("v");
await assertContent({ vsCodeSelections: [new vscode.Selection(0, 0, 0, 1)] }, client);
await sendVSCodeKeys("ll");
await assertContent({ vsCodeSelections: [new vscode.Selection(0, 0, 0, 5)] }, client);
await sendVSCodeKeys("l");
await assertContent({ vsCodeSelections: [new vscode.Selection(0, 0, 0, 6)] }, client);
await sendEscapeKey();
});
it("Works - visual mode across mixed BMP and non-BMP chars", async () => {
await openTextDocument({ content: ["aᵩ𝕜b"].join("\n") });
await sendVSCodeKeys("v");
await assertContent({ vsCodeSelections: [new vscode.Selection(0, 0, 0, 1)] }, client);
await sendVSCodeKeys("ll");
await assertContent({ vsCodeSelections: [new vscode.Selection(0, 0, 0, 3)] }, client);
await sendVSCodeKeys("l");
await assertContent({ vsCodeSelections: [new vscode.Selection(0, 0, 0, 5)] }, client);
await sendEscapeKey();
});
});