Skip to content

Moving text cursor cause an incorrect position in Chinese #22717

@ikatyang

Description

@ikatyang
  • VSCode Version: 1.10.2
  • OS Version: win7 & win10

Steps to Reproduce:

  1. Press up arrow key ⬆️
  2. Press down arrow key ⬇️

vscode-text-cursor

Chinese characters are actually 2-char width in monospace-font.

Test font: 文泉驛等寬正黑 ( download: wqy-zenhei.zip, this is an open-source font )

Test config settings.json

{
  "editor.fontFamily": "文泉驛等寬正黑"
}

Test case

一二三四五六七八九十
12345678901234567890
一二三四五六七八九十
12345678901234567890
一二三四五六七八九十
12345678901234567890
一二三四五六七八九十
12345678901234567890
一二三四五六七八九十
12345678901234567890
一二三四五六七八九十
12345678901234567890
一二三四五六七八九十
12345678901234567890
一二三四五六七八九十
12345678901234567890
一二三四五六七八九十
12345678901234567890

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-coreEditor basic functionalityverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions